Alpine: use busybox-ntp instead of ntp

ntp is not available, closes #6
This commit is contained in:
Sven Velt 2020-12-03 23:48:17 +01:00
parent 2bced02a22
commit bb38d9e891

View file

@ -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: