Fix chrony genconfig

Closes-Bug: #1665047
Change-Id: Ief0813e4f505574c9b8eee8a59765dadbac474ed
This commit is contained in:
Eduardo Gonzalez 2017-02-15 00:05:00 +00:00
parent dd79b8d1d3
commit e01900b3ce
2 changed files with 5 additions and 1 deletions

View File

@ -10,3 +10,7 @@
name: "{{ service.container_name }}"
image: "{{ service.image }}"
volumes: "{{ service.volumes }}"
when:
- action != "config"
- inventory_hostname in groups[service.group]
- service.enabled | bool

View File

@ -36,9 +36,9 @@
privileged: "{{ item.value.privileged }}"
volumes: "{{ item.value.volumes }}"
when:
- action != "config"
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
- action != "genconfig"
with_dict: "{{ chrony_services }}"
notify:
- Restart chrony container