diff options
Diffstat (limited to 'deploy-reboot.yml')
-rw-r--r-- | deploy-reboot.yml | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/deploy-reboot.yml b/deploy-reboot.yml index de7bed7..078d6cd 100644 --- a/deploy-reboot.yml +++ b/deploy-reboot.yml @@ -1,7 +1,7 @@ --- - name: Deploy conditional reboot service and timer hosts: all - become: yes + become: true tasks: - name: Copy conditional-reboot.service file @@ -14,8 +14,9 @@ [Service] Type=oneshot ExecStart=/bin/sh -c 'if [ -f /var/run/reboot-required ]; then reboot; fi' + mode: "0640" notify: - - reload systemd + - Reload systemd - name: Copy conditional-reboot.timer file copy: @@ -30,17 +31,17 @@ [Install] WantedBy=timers.target + mode: "0640" notify: - - reload systemd + - Reload systemd - name: Enable and start conditional-reboot.timer systemd: name: conditional-reboot.timer - enabled: yes + enabled: true state: started handlers: - - name: reload systemd + - name: Reload systemd systemd: - daemon_reload: yes - + daemon_reload: true |