ansible-role-ntp/tasks/main.yml

16 lines
516 B
YAML

---
- name: Display the value of ntp_service_install
ansible.builtin.debug:
msg: "ntp_service_install: {{ ntp_service_enabled }}"
tags: ntp
- name: Manage the NTP service in the Deb distributions
ansible.builtin.import_tasks: ntp-deb.yml
when: ansible_distribution_file_variety == "Debian"
tags: [ 'packages', 'ntp' ]
- name: Manage the NTP service in the EL distributions
ansible.builtin.import_tasks: ntp-el.yml
when: ansible_distribution_file_variety == "RedHat"
tags: [ 'packages', 'ntp' ]