fix broken variable in ansible 2.4.1.0 and ensure tasks for calico-rr (#1982)

This commit is contained in:
Spencer Smith
2017-11-16 13:44:15 -05:00
committed by Matthew Mosesohn
parent 67419e8d0a
commit bc1a4e12ad
2 changed files with 4 additions and 4 deletions

View File

@@ -170,7 +170,7 @@
"apiVersion": "v1",
"metadata": {"node": "{{ inventory_hostname }}",
"scope": "node",
"peerIP": "{{ hostvars[item]["calico_rr_ip"]|default(hostvars[item]["ip"])|default(hostvars[item]["ansible_default_ipv4.address"]) }}"}
"peerIP": "{{ hostvars[item]["calico_rr_ip"]|default(hostvars[item]["ip"])|default(hostvars[item]["ansible_default_ipv4"]["address"]) }}"}
}'
| {{ bin_dir }}/calicoctl create --skip-exists -f -
with_items: "{{ groups['calico-rr'] | default([]) }}"