1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_ntp.git synced 2024-08-16 12:59:49 +02:00
ansible_role_ntp/tasks/main.yml
2022-11-16 23:48:04 +01:00

17 lines
540 B
YAML

---
- name: Optionally run versionscheck if enabled
ansible.builtin.include_tasks: versioncheck.yml
when: submodules_versioncheck | bool
- name: Include OS specific variables.
ansible.builtin.include_vars: "{{ lookup('first_found', ntp__vars) }}"
- name: Install ntp
ansible.builtin.include_tasks: "{{ lookup('first_found', ntp__install) }}"
- name: Configure ntp
ansible.builtin.include_tasks: config.yml
- name: Optionally set NTP Timezone
ansible.builtin.include_tasks: set_time_zone.yml
when: ntp_set_time_zone | bool