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: