Skip to content
Snippets Groups Projects
Commit 844ba6d4 authored by James Benson's avatar James Benson
Browse files

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
parent 87c860db
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment