Fix chrony genconfig
Closes-Bug: #1665047 Change-Id: Ief0813e4f505574c9b8eee8a59765dadbac474ed
This commit is contained in:
parent
dd79b8d1d3
commit
e01900b3ce
@ -10,3 +10,7 @@
|
|||||||
name: "{{ service.container_name }}"
|
name: "{{ service.container_name }}"
|
||||||
image: "{{ service.image }}"
|
image: "{{ service.image }}"
|
||||||
volumes: "{{ service.volumes }}"
|
volumes: "{{ service.volumes }}"
|
||||||
|
when:
|
||||||
|
- action != "config"
|
||||||
|
- inventory_hostname in groups[service.group]
|
||||||
|
- service.enabled | bool
|
||||||
|
@ -36,9 +36,9 @@
|
|||||||
privileged: "{{ item.value.privileged }}"
|
privileged: "{{ item.value.privileged }}"
|
||||||
volumes: "{{ item.value.volumes }}"
|
volumes: "{{ item.value.volumes }}"
|
||||||
when:
|
when:
|
||||||
|
- action != "config"
|
||||||
- inventory_hostname in groups[item.value.group]
|
- inventory_hostname in groups[item.value.group]
|
||||||
- item.value.enabled | bool
|
- item.value.enabled | bool
|
||||||
- action != "genconfig"
|
|
||||||
with_dict: "{{ chrony_services }}"
|
with_dict: "{{ chrony_services }}"
|
||||||
notify:
|
notify:
|
||||||
- Restart chrony container
|
- Restart chrony container
|
||||||
|
Loading…
Reference in New Issue
Block a user