You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
657 B

---
- name: chrony | 1. Install chrony
ansible.builtin.apt:
name: chrony
state: "{{ chrony_pkg_state }}"
- name: chrony | 2. Create custom chrony directory
ansible.builtin.file:
path: "{{ chrony_config_location }}"
state: directory
- name: chrony | 3. Copy the chrony.conf template file
ansible.builtin.template:
src: chrony.conf.j2
dest: "{{ chrony_config_location }}"
notify:
- restart chrony
- name: chrony | 4. start and enable chrony service and daemon reload
ansible.builtin.service:
name: "{{ chrony_service_name }}"
state: "{{ chrony_service_state }}"
enabled: "{{ chrony_service_enabled }}"