chrony: Bugfix: masked ntp (#56)
chrony: Bugfix: masked ntp - client chrony: Bugfix: masked ntp - server Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#56 Co-Authored-By: mg <mg@noreply.git.mgrote.net> Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
parent
193555cfeb
commit
2ad3342909
4 changed files with 16 additions and 16 deletions
|
@ -4,9 +4,3 @@
|
||||||
name: chrony
|
name: chrony
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
- name: mask ntp service
|
|
||||||
become: yes
|
|
||||||
systemd:
|
|
||||||
name: ntp
|
|
||||||
masked: yes
|
|
||||||
|
|
|
@ -6,12 +6,18 @@
|
||||||
state: stopped
|
state: stopped
|
||||||
masked: yes
|
masked: yes
|
||||||
|
|
||||||
- name: stop ntp service
|
- name: gather package facts
|
||||||
|
become: yes
|
||||||
|
ansible.builtin.package_facts:
|
||||||
|
manager: auto
|
||||||
|
|
||||||
|
- name: stop and mask ntp service
|
||||||
become: yes
|
become: yes
|
||||||
systemd:
|
systemd:
|
||||||
name: ntp
|
name: ntp
|
||||||
|
masked: yes
|
||||||
state: stopped
|
state: stopped
|
||||||
notify: mask ntp service
|
when: "'ntp' in ansible_facts.packages"
|
||||||
|
|
||||||
- name: install chrony packages
|
- name: install chrony packages
|
||||||
become: yes
|
become: yes
|
||||||
|
|
|
@ -4,9 +4,3 @@
|
||||||
name: chrony
|
name: chrony
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
- name: mask ntp service
|
|
||||||
become: yes
|
|
||||||
systemd:
|
|
||||||
name: ntp
|
|
||||||
masked: yes
|
|
||||||
|
|
|
@ -6,12 +6,18 @@
|
||||||
state: stopped
|
state: stopped
|
||||||
masked: yes
|
masked: yes
|
||||||
|
|
||||||
- name: stop ntp service
|
- name: gather package facts
|
||||||
|
become: yes
|
||||||
|
ansible.builtin.package_facts:
|
||||||
|
manager: auto
|
||||||
|
|
||||||
|
- name: stop and mask ntp service
|
||||||
become: yes
|
become: yes
|
||||||
systemd:
|
systemd:
|
||||||
name: ntp
|
name: ntp
|
||||||
|
masked: yes
|
||||||
state: stopped
|
state: stopped
|
||||||
notify: mask ntp service
|
when: "'ntp' in ansible_facts.packages"
|
||||||
|
|
||||||
- name: install chrony packages
|
- name: install chrony packages
|
||||||
become: yes
|
become: yes
|
||||||
|
|
Loading…
Reference in a new issue