From 40d474c5eba4b2fe9ebc7676dfe1b20818a95d2d Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Thu, 14 Jan 2021 17:15:12 +0100 Subject: fedora: timesyncd: fix disabling --- roles/fedora/tasks/timesyncd.yml | 4 ++-- 1 file 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: -- cgit v1.2.1