Adds NTP sync process to account for ceph time sync requirements.

Removes precheck portion of NTP.
Corrects for redhat
Fixes typo

Change-Id: Ic8d2cd3c2ba02f9f672db862a74950dc73753f2d
Closes-Bug: #1700121
This commit is contained in:
James Benson 2017-06-26 10:16:43 -05:00
parent 87c860dbf9
commit 844ba6d4ba

View File

@ -79,6 +79,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