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: