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.
18 lines
501 B
18 lines
501 B
--- |
|
- name: chrony | 1. Install chrony |
|
ansible.builtin.apt: |
|
name: chrony |
|
state: "{{ chrony_pkg_state }}" |
|
|
|
- name: chrony | 2. Copy the chrony.conf template file |
|
ansible.builtin.template: |
|
src: chrony.conf.j2 |
|
dest: "{{ chrony_config_location }}" |
|
notify: |
|
- restart chrony |
|
|
|
- name: chrony | 3. start and enable chrony service |
|
ansible.builtin.service: |
|
name: "{{ chrony_service_name }}" |
|
state: "{{ chrony_service_state }}" |
|
enabled: "{{ chrony_service_enabled }}"
|
|
|