Merge "Fix Neutron local_ip fallback"

This commit is contained in:
Jenkins 2016-07-13 00:04:22 +00:00 committed by Gerrit Code Review
commit eb3aec7827

View File

@ -170,7 +170,7 @@
- name: set local_ip fact (is_metal)
set_fact:
_local_ip: "{{ hostvars[inventory_hostname]['ansible_' + _overlay_network.bridge|default('br-mgmt')|replace('-', '_')]['ipv4']['address']|default(ansible_ssh_host) }}"
_local_ip: "{{ hostvars[inventory_hostname]['ansible_' + _overlay_network.bridge|default(ansible_default_ipv4['interface'])|replace('-', '_')]['ipv4']['address']|default(ansible_ssh_host) }}"
when:
- is_metal | bool
tags: