From 27d15a9445183218e9c630bed2d4041da9212a4a Mon Sep 17 00:00:00 2001 From: Davo Date: Thu, 28 Jul 2022 12:00:52 +0200 Subject: [PATCH] repair wrong cfg location --- ansible-chrony/tasks/main.yml | 9 ++------- ansible-chrony/vars/main.yml | 6 +++--- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/ansible-chrony/tasks/main.yml b/ansible-chrony/tasks/main.yml index de87c5e..bac6e86 100644 --- a/ansible-chrony/tasks/main.yml +++ b/ansible-chrony/tasks/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 }}" diff --git a/ansible-chrony/vars/main.yml b/ansible-chrony/vars/main.yml index 81e0aff..8cd6485 100644 --- a/ansible-chrony/vars/main.yml +++ b/ansible-chrony/vars/main.yml @@ -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