fix agent config generation when no agent group is defined

This commit is contained in:
ace 2022-09-09 13:03:05 +03:00
parent 8cbfe0b3c5
commit 745c1b5dc0
No known key found for this signature in database
GPG Key ID: E805F7888C3ED7C0

View File

@ -26,7 +26,9 @@
when: consul_ssl
- name: Merge config for Consul agent
when: inventory_hostname in groups[consul_agent_group]
when:
- groups[consul_agent_group] is defined
- inventory_hostname in groups[consul_agent_group]
block:
- name: Merge config for Consul agent
set_fact: