Skip to content

Commit f011574

Browse files
committed
Changing to systemd instead of the service or command
We already assume 1 OS, this makes it more stable without much extra risk
1 parent 92d2df5 commit f011574

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

icpc-wf/ansible/roles/icpc_fixes/handlers/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
# Define here handlers associated to this role.
33

44
- name: restart systemd timesyncd
5-
command: systemctl restart systemd-timesyncd
5+
systemd:
6+
name: systemd-timesyncd
7+
state: restarted

icpc-wf/ansible/roles/judgedaemon/tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@
8181
- enable and restart judgedaemon
8282

8383
- name: disable systemd timers
84-
command: systemctl mask {{ item }}
85-
args:
86-
creates: /etc/systemd/system/{{ item }}
84+
systemd:
85+
name: "{{ item }}"
86+
masked: true
8787
loop:
8888
- apt-daily-upgrade.timer
8989
- apt-daily.timer

0 commit comments

Comments
 (0)