Merge "Adds NTP sync process to account for ceph time sync requirements. Removes precheck portion of NTP. Corrects for redhat Fixes typo"
This commit is contained in:
commit
8bcbf493f1
@ -61,6 +61,40 @@
|
|||||||
enabled: yes
|
enabled: yes
|
||||||
become: True
|
become: True
|
||||||
|
|
||||||
|
- name: Stop time service
|
||||||
|
service:
|
||||||
|
name: ntp
|
||||||
|
state: stopped
|
||||||
|
become: True
|
||||||
|
when: ansible_os_family == "Debian"
|
||||||
|
|
||||||
|
- name: Stop time service
|
||||||
|
service:
|
||||||
|
name: ntpd
|
||||||
|
state: stopped
|
||||||
|
become: True
|
||||||
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
|
- name: Synchronizing time one-time
|
||||||
|
command: ntpd -gq
|
||||||
|
become: True
|
||||||
|
|
||||||
|
- name: Start time sync service
|
||||||
|
service:
|
||||||
|
name: ntp
|
||||||
|
state: started
|
||||||
|
enabled: yes
|
||||||
|
become: True
|
||||||
|
when: ansible_os_family == "Debian"
|
||||||
|
|
||||||
|
- name: Start time sync service
|
||||||
|
service:
|
||||||
|
name: ntpd
|
||||||
|
state: started
|
||||||
|
enabled: yes
|
||||||
|
become: True
|
||||||
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
- name: Reboot
|
- name: Reboot
|
||||||
command: reboot -f
|
command: reboot -f
|
||||||
become: True
|
become: True
|
||||||
|
Loading…
Reference in New Issue
Block a user