2018-12-28 10:49:24 +01:00
|
|
|
---
|
2022-11-16 23:34:46 +01:00
|
|
|
- name: Optionally run versionscheck if enabled
|
2023-10-28 16:47:54 +02:00
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
file: versioncheck.yml
|
2022-11-16 23:34:46 +01:00
|
|
|
when: submodules_versioncheck | bool
|
2018-12-28 11:54:06 +01:00
|
|
|
|
|
|
|
- name: Include OS specific variables.
|
2023-10-28 16:47:54 +02:00
|
|
|
ansible.builtin.include_vars:
|
|
|
|
file: "{{ lookup('first_found', ntp__vars) }}"
|
2018-12-28 11:54:06 +01:00
|
|
|
|
2018-12-28 15:10:34 +01:00
|
|
|
- name: Install ntp
|
2023-10-28 16:47:54 +02:00
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
file: "{{ lookup('first_found', ntp__install) }}"
|
2021-09-26 23:17:54 +02:00
|
|
|
|
2018-12-28 15:10:34 +01:00
|
|
|
- name: Configure ntp
|
2023-10-28 16:47:54 +02:00
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
file: config.yml
|
2022-11-16 23:48:04 +01:00
|
|
|
|
|
|
|
- name: Optionally set NTP Timezone
|
2023-10-28 16:47:54 +02:00
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
file: set_time_zone.yml
|
2022-11-16 23:48:04 +01:00
|
|
|
when: ntp_set_time_zone | bool
|