From a55693f4b330e38b7ebfa774228278f1e55ad66d Mon Sep 17 00:00:00 2001 From: mg Date: Sat, 13 Mar 2021 18:48:41 +0100 Subject: [PATCH] chrony: ntp + timesyncd masked (#33) chrony: ntp + timesyncd masked Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/ansible/pulls/33 Co-Authored-By: mg Co-Committed-By: mg --- roles/mgrote.ntp_chrony_client/tasks/main.yml | 14 ++++++++++++++ roles/mgrote.ntp_chrony_server/tasks/main.yml | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/roles/mgrote.ntp_chrony_client/tasks/main.yml b/roles/mgrote.ntp_chrony_client/tasks/main.yml index 824c9471..e4533fb5 100644 --- a/roles/mgrote.ntp_chrony_client/tasks/main.yml +++ b/roles/mgrote.ntp_chrony_client/tasks/main.yml @@ -1,4 +1,18 @@ --- + - name: mask systemd-timesyncd service + become: yes + systemd: + name: systemd-timesyncd + state: stopped + masked: yes + + - name: mask ntp service + become: yes + systemd: + name: ntp + state: stopped + masked: yes + - name: install chrony packages become: yes ansible.builtin.package: diff --git a/roles/mgrote.ntp_chrony_server/tasks/main.yml b/roles/mgrote.ntp_chrony_server/tasks/main.yml index 824c9471..2cc04753 100644 --- a/roles/mgrote.ntp_chrony_server/tasks/main.yml +++ b/roles/mgrote.ntp_chrony_server/tasks/main.yml @@ -1,4 +1,18 @@ --- + - name: mask systemd-timesyncd service + become: yes + systemd: + name: systemd-timesyncd + state: stopped + masked: yes + + - name: mask ntp service + become: yes + systemd: + name: ntp + state: stopped + masked: yes + - name: install chrony packages become: yes ansible.builtin.package: