Skip to content

Commit

Permalink
Fix undeclared variable in ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
iknite committed Feb 28, 2019
1 parent 8196100 commit f30ab62
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deploy/aws/provision/templates/qed-config.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ server:
raft: "{{ ansible_eth0.ipv4.address }}:8500"
gossip: "{{ ansible_eth0.ipv4.address }}:8400"
{%- if groups.role_qed.index(inventory_hostname) != 0 %}
gossip_join:
- "{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8400"
raft_join:
{%- for host in groups['name_qed-0'] %}
{%- for host in groups['name_qed-0'] %}
- "{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8700"
{%- endfor %}
gossip_join:
- "{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8400"
{%- endfor %}
{%- endif %}
{%- endif %}
{% if 'role_monitor' in group_names %}
{%- if 'role_monitor' in group_names %}
agent:
node: "monitor"
bind: "{{ ansible_eth0.ipv4.address }}:8200"
Expand Down

0 comments on commit f30ab62

Please sign in to comment.