From e02560178f8fe36ba42bf3173d5b2c40aa35258d Mon Sep 17 00:00:00 2001 From: rubenb Date: Mon, 12 Feb 2024 17:32:18 +0100 Subject: [PATCH] timesyncd start on boot --- roles/config-ntp/tasks/main.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/config-ntp/tasks/main.yaml b/roles/config-ntp/tasks/main.yaml index c071870..cecfd74 100644 --- a/roles/config-ntp/tasks/main.yaml +++ b/roles/config-ntp/tasks/main.yaml @@ -33,4 +33,9 @@ owner: root group: root mode: '0644' - notify: restart systemd-timesyncd \ No newline at end of file + notify: restart systemd-timesyncd +# service should start on boot. +- name: service should start on boot + service: + name: "{{ timesyncd_daemon }}" + enabled: yes \ No newline at end of file