summaryrefslogtreecommitdiff
path: root/deploy-reboot.yml
diff options
context:
space:
mode:
authoruvok cheetah2025-02-09 17:57:14 +0100
committeruvok cheetah2025-02-09 17:57:14 +0100
commita3ee42d1dde090c5baad512ff8707f7e2c068433 (patch)
treea619ef2f51c548a235b188cac19c7cf337686424 /deploy-reboot.yml
parentbb989a2148686d1eb4f49b5aa2597c5162436196 (diff)
LintingHEADmaster
Diffstat (limited to 'deploy-reboot.yml')
-rw-r--r--deploy-reboot.yml15
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