From f4c4266510fdf08eb515562daffa17b1fe5a9fbf Mon Sep 17 00:00:00 2001 From: David Lopez Date: Sat, 24 Aug 2024 10:49:49 +0000 Subject: [PATCH] Actualizar roles/config-ntp/tasks/main.yaml --- roles/config-ntp/tasks/main.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/roles/config-ntp/tasks/main.yaml b/roles/config-ntp/tasks/main.yaml index 5dad8bb..123fa5c 100644 --- a/roles/config-ntp/tasks/main.yaml +++ b/roles/config-ntp/tasks/main.yaml @@ -38,7 +38,15 @@ owner: root group: root mode: '0644' - notify: restart systemd-timesyncd +- name: retocar fichero /etc/systemd/timesyncd.conf + lineinfile: + path: /etc/systemd/timesyncd.conf + regexp: '^#?FallbackNTP=' + line: "FallbackNTP=ntp.roa.es" + owner: root + group: root + mode: '0644' + notify: restart systemd-timesyncd # service should start on boot. - name: service should start on boot service: