1 #####################################
2 ### someone's ansible provisioner ###
3 #####################################
4 # Part of: https://git.somenet.org/root/pub/somesible.git
5 # 2017-2024 by someone <someone@somenet.org>
15 ignore_errors: "{{ignore_online_errors | bool}}"
21 dest: "/etc/chrony/chrony.conf"
23 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/chrony.conf"
24 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/chrony.conf"
25 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/chrony.conf"
26 - "default/chrony.{{ntpd_type}}.conf"
27 notify: restart chrony.service
30 - name: copy chrony.service to /etc/systemd/system/
33 dest: "/etc/systemd/system/chrony.service"
38 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/chrony.service"
39 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/chrony.service"
40 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/chrony.service"
41 - "default/chrony.service"
42 notify: restart chrony.service
45 - name: enable and start chrony.service
46 include_role: name="base/systemd/enable-and-start"
48 service_name: chrony.service
51 - name: disable and mask systemd-timesyncd.service
53 name: systemd-timesyncd.service
57 # may have been removed by ntp install. sometimes not.