Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion shared/templates/timer_enabled/ansible.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
name: "{{{ TIMERNAME }}}.timer"
enabled: "yes"
state: "started"
masked: "no"
Comment thread
teacup-on-rockingchair marked this conversation as resolved.
Outdated
when:
- '"{{{ PACKAGENAME }}}" in ansible_facts.packages'

1 change: 1 addition & 0 deletions shared/templates/timer_enabled/bash.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# disruption = low

SYSTEMCTL_EXEC='/usr/bin/systemctl'
"$SYSTEMCTL_EXEC" unmask '{{{ TIMERNAME }}}.timer'
if [[ $("$SYSTEMCTL_EXEC" is-system-running) != "offline" ]]; then
"$SYSTEMCTL_EXEC" start '{{{ TIMERNAME }}}.timer'
fi
Expand Down
6 changes: 6 additions & 0 deletions shared/templates/timer_enabled/tests/timer_masked.fail.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
# packages = {{{ PACKAGENAME }}}

SYSTEMCTL_EXEC='/usr/bin/systemctl'
"$SYSTEMCTL_EXEC" stop '{{{ TIMERNAME }}}.timer'
"$SYSTEMCTL_EXEC" mask '{{{ TIMERNAME }}}.timer'
Loading