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

23 lines
590 B
YAML
Raw Normal View History

2018-12-28 10:49:24 +01:00
---
2022-11-16 23:34:46 +01:00
- name: Optionally run versionscheck if enabled
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.
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
ansible.builtin.include_tasks:
file: "{{ lookup('first_found', ntp__install) }}"
2018-12-28 15:10:34 +01:00
- name: Configure ntp
ansible.builtin.include_tasks:
file: config.yml
2022-11-16 23:48:04 +01:00
- name: Optionally set NTP Timezone
ansible.builtin.include_tasks:
file: set_time_zone.yml
2022-11-16 23:48:04 +01:00
when: ntp_set_time_zone | bool