aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2021-01-14 17:15:12 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2021-01-16 23:39:56 +0100
commit40d474c5eba4b2fe9ebc7676dfe1b20818a95d2d (patch)
tree909158e12e68fb494c4b55e17779f2b08e48d8dc /roles
parent62e960f019dd1aecb2db6d347716ec61ae56aeac (diff)
downloadlabitat-ansible-40d474c5eba4b2fe9ebc7676dfe1b20818a95d2d.tar.gz
labitat-ansible-40d474c5eba4b2fe9ebc7676dfe1b20818a95d2d.tar.xz
labitat-ansible-40d474c5eba4b2fe9ebc7676dfe1b20818a95d2d.zip
fedora: timesyncd: fix disabling
Diffstat (limited to 'roles')
-rw-r--r--roles/fedora/tasks/timesyncd.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/fedora/tasks/timesyncd.yml b/roles/fedora/tasks/timesyncd.yml
index 8b53cab..0d6ac87 100644
--- a/roles/fedora/tasks/timesyncd.yml
+++ b/roles/fedora/tasks/timesyncd.yml
@@ -13,7 +13,7 @@
when: use_timesyncd
notify: restart timesyncd
-- name: Enable systemd-timesyncd
+- name: Enable/disable systemd-timesyncd
systemd:
name: systemd-timesyncd.service
enabled: "{{ use_timesyncd|ternary('yes','no') }}"
@@ -21,7 +21,7 @@
state: "{{ use_timesyncd|ternary('started','stopped') }}"
when: not chroot
- name: '- when in chroot'
- command: systemctl enable systemd-timesyncd.service
+ command: "systemctl {{ use_timesyncd|ternary('enable','disable') }} systemd-timesyncd.service"
when: chroot
# vim: set ts=2 sw=2 et: