diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2021-01-14 17:15:12 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2021-01-16 23:39:56 +0100 |
commit | 40d474c5eba4b2fe9ebc7676dfe1b20818a95d2d (patch) | |
tree | 909158e12e68fb494c4b55e17779f2b08e48d8dc | |
parent | 62e960f019dd1aecb2db6d347716ec61ae56aeac (diff) | |
download | labitat-ansible-40d474c5eba4b2fe9ebc7676dfe1b20818a95d2d.tar.gz labitat-ansible-40d474c5eba4b2fe9ebc7676dfe1b20818a95d2d.tar.xz labitat-ansible-40d474c5eba4b2fe9ebc7676dfe1b20818a95d2d.zip |
fedora: timesyncd: fix disabling
-rw-r--r-- | roles/fedora/tasks/timesyncd.yml | 4 |
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: |