repair wrong cfg location

master
Davo 3 years ago
parent 1f5a87ec1e
commit 27d15a9445
  1. 9
      ansible-chrony/tasks/main.yml
  2. 6
      ansible-chrony/vars/main.yml

@ -4,19 +4,14 @@
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
- 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 | 4. start and enable chrony service and daemon reload
- name: chrony | 3. start and enable chrony service and daemon reload
ansible.builtin.service:
name: "{{ chrony_service_name }}"
state: "{{ chrony_service_state }}"

@ -1,5 +1,5 @@
---
chrony_service_name: chrony
chrony_config_location: /etc/sw-chrony/chrony.conf
chrony_config_driftfile: /var/lib/sw-chrony/chrony.drift
chrony_config_keyfile: /etc/sw-chrony/chrony.keys
chrony_config_location: /etc/chrony/chrony.conf
chrony_config_driftfile: /var/lib/chrony/chrony.drift
chrony_config_keyfile: /etc/chrony/chrony.keys

Loading…
Cancel
Save