We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf6b942 + 8f47d08 commit abbe046Copy full SHA for abbe046
roles/vault/tasks/consul.yml
@@ -16,8 +16,8 @@
16
-bind "{{ hostvars[inventory_hostname]['ansible_'~consul_bind_interface].ipv4.address }}"
17
-data-dir /consul/data
18
-server
19
- -bootstrap-expect "{{ groups['consul'] | length }}"
20
- {% for host in groups['consul'] %}
+ -bootstrap-expect "{{ ansible_play_hosts | length }}"
+ {% for host in ansible_play_hosts %}
21
{% if host != inventory_hostname %}
22
-retry-join "{{ hostvars[host]['ansible_'~consul_bind_interface].ipv4.address }}"
23
{% endif %}
0 commit comments