From bb38d9e89130b68dabf997059cf8f863d4625739 Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Thu, 3 Dec 2020 23:48:17 +0100 Subject: [PATCH] Alpine: use busybox-ntp instead of ntp ntp is not available, closes #6 --- roles/timesync-enabled/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/timesync-enabled/tasks/main.yml b/roles/timesync-enabled/tasks/main.yml index 0eb7f60..37d6812 100644 --- a/roles/timesync-enabled/tasks/main.yml +++ b/roles/timesync-enabled/tasks/main.yml @@ -7,6 +7,13 @@ success_msg: 'Found supported timesync service »{{ timesync_daemon }}«' +- name: Change daemon from ntp to busybox-ntp on Alpine + set_fact: + timesync_daemon: "busybox-ntp" + changed_when: True + when: timesync_daemon == "ntp" and ansible_os_family|lower == "alpine" + + - name: Include each network variables if there is no host variable include_vars: "{{ timesync_varfile_network }}" vars: