Merge "Fixed ability of usage interfaces/bridges with dots (aliases)"

This commit is contained in:
Zuul 2018-10-25 17:47:02 +00:00 committed by Gerrit Code Review
commit 705f74277a
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@
query: "{{ is_metal | ternary(metal_query, non_metal_query) }}"
non_metal_query: "container_networks.{{ network_address }}.address || ansible_host"
find_bridge: "container_networks.{{ network_address }}.bridge"
metal_query: "ansible_{{ hostvars[inventory_hostname]|json_query(find_bridge) | replace('-','_') }}.ipv4.address || {{ non_metal_query }}"
metal_query: "'ansible_{{ hostvars[inventory_hostname] | json_query(find_bridge) | replace('-','_') }}'.ipv4.address || {{ non_metal_query }}"
tags:
- common-address
- always