kolla-ansible/ansible/roles/chrony/handlers/main.yml
Eduardo Gonzalez e01900b3ce Fix chrony genconfig
Closes-Bug: #1665047
Change-Id: Ief0813e4f505574c9b8eee8a59765dadbac474ed
2017-02-15 17:27:36 +00:00

17 lines
499 B
YAML

---
- name: Restart chrony container
vars:
service_name: "chrony"
service: "{{ chrony_services[service_name] }}"
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
privileged: "{{ service.privileged }}"
name: "{{ service.container_name }}"
image: "{{ service.image }}"
volumes: "{{ service.volumes }}"
when:
- action != "config"
- inventory_hostname in groups[service.group]
- service.enabled | bool