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:
Jenkins 2017-07-07 03:11:13 +00:00 committed by Gerrit Code Review
commit 8bcbf493f1

View File

@ -61,6 +61,40 @@
enabled: yes
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
command: reboot -f
become: True