Skip to content
Snippets Groups Projects
Commit 2f809c15 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "ntpd behind proxy fails"

parents 960c8de7 8e1940d4
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,8 @@ customize_etc_hosts: True
create_kolla_user: True
enable_host_ntp: True
docker_storage_driver: ""
debian_pkg_install:
......
......@@ -66,18 +66,23 @@
name: ntp
state: stopped
become: True
when: ansible_os_family == "Debian"
when:
- ansible_os_family == "Debian"
- enable_host_ntp | bool
- name: Stop time service
service:
name: ntpd
state: stopped
become: True
when: ansible_os_family == "RedHat"
when:
- ansible_os_family == "RedHat"
- enable_host_ntp | bool
- name: Synchronizing time one-time
command: ntpd -gq
become: True
when: enable_host_ntp | bool
- name: Start time sync service
service:
......@@ -85,7 +90,9 @@
state: started
enabled: yes
become: True
when: ansible_os_family == "Debian"
when:
- ansible_os_family == "Debian"
- enable_host_ntp | bool
- name: Start time sync service
service:
......@@ -93,7 +100,9 @@
state: started
enabled: yes
become: True
when: ansible_os_family == "RedHat"
when:
- ansible_os_family == "RedHat"
- enable_host_ntp | bool
- name: Reboot
command: reboot -f
......
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