Merge "emit-job-header: fix print node information"

This commit is contained in:
Zuul 2018-09-20 13:18:56 +00:00 committed by Gerrit Code Review
commit 7fa35a338b

View File

@ -24,10 +24,11 @@
debug: debug:
msg: | msg: |
# Node Information # Node Information
Hostname: {{ hostvars[item]['ansible_hostname'] }} Hostname: {{ hostvars[item]['ansible_hostname']|default('unknown') }}
Provider: {{ hostvars[item]['nodepool']['provider'] }} Provider: {{ hostvars[item]['nodepool']['provider'] }}
Label: {{ hostvars[item]['nodepool']['label'] }} Label: {{ hostvars[item]['nodepool']['label'] }}
{% if hostvars[item]['nodepool']['interface_ip'] is defined %} {% if hostvars[item]['nodepool']['interface_ip'] is defined %}
Interface IP: {{ hostvars[item]['nodepool']['interface_ip'] }} Interface IP: {{ hostvars[item]['nodepool']['interface_ip'] }}
{% endif %} {% endif %}
loop: "{{ query('inventory_hostnames', 'all,!localhost') }}" loop: "{{ query('inventory_hostnames', 'all,!localhost') }}"
ignore_errors: yes