ntpd behind proxy fails
Change-Id: I0447e90f53f9b04315bc4e6618e528351521e05d Closes-Bug: #1705558
This commit is contained in:
parent
ffc4fb3793
commit
8e1940d47a
@ -9,6 +9,8 @@ customize_etc_hosts: True
|
|||||||
|
|
||||||
create_kolla_user: True
|
create_kolla_user: True
|
||||||
|
|
||||||
|
enable_host_ntp: True
|
||||||
|
|
||||||
docker_storage_driver: ""
|
docker_storage_driver: ""
|
||||||
|
|
||||||
debian_pkg_install:
|
debian_pkg_install:
|
||||||
|
@ -66,18 +66,23 @@
|
|||||||
name: ntp
|
name: ntp
|
||||||
state: stopped
|
state: stopped
|
||||||
become: True
|
become: True
|
||||||
when: ansible_os_family == "Debian"
|
when:
|
||||||
|
- ansible_os_family == "Debian"
|
||||||
|
- enable_host_ntp | bool
|
||||||
|
|
||||||
- name: Stop time service
|
- name: Stop time service
|
||||||
service:
|
service:
|
||||||
name: ntpd
|
name: ntpd
|
||||||
state: stopped
|
state: stopped
|
||||||
become: True
|
become: True
|
||||||
when: ansible_os_family == "RedHat"
|
when:
|
||||||
|
- ansible_os_family == "RedHat"
|
||||||
|
- enable_host_ntp | bool
|
||||||
|
|
||||||
- name: Synchronizing time one-time
|
- name: Synchronizing time one-time
|
||||||
command: ntpd -gq
|
command: ntpd -gq
|
||||||
become: True
|
become: True
|
||||||
|
when: enable_host_ntp | bool
|
||||||
|
|
||||||
- name: Start time sync service
|
- name: Start time sync service
|
||||||
service:
|
service:
|
||||||
@ -85,7 +90,9 @@
|
|||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
become: True
|
become: True
|
||||||
when: ansible_os_family == "Debian"
|
when:
|
||||||
|
- ansible_os_family == "Debian"
|
||||||
|
- enable_host_ntp | bool
|
||||||
|
|
||||||
- name: Start time sync service
|
- name: Start time sync service
|
||||||
service:
|
service:
|
||||||
@ -93,7 +100,9 @@
|
|||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
become: True
|
become: True
|
||||||
when: ansible_os_family == "RedHat"
|
when:
|
||||||
|
- ansible_os_family == "RedHat"
|
||||||
|
- enable_host_ntp | bool
|
||||||
|
|
||||||
- name: Reboot
|
- name: Reboot
|
||||||
command: reboot -f
|
command: reboot -f
|
||||||
|
Loading…
Reference in New Issue
Block a user