ddc33c5dc4
Both on logs.o.o and vexxhost swift object-storage, without a trailing slash, a request will get 301 to new location with trailing slash. By adding a trailing slash here, and since this is usually a directory, we can avoid a 301 redirect for browsers. Note, zuul_return for zuul upload-logs and upload-logs-swift does include trailing slash. Change-Id: Ie58f3922680806a5c1865a44bb379ef66e2992fd Signed-off-by: Paul Belanger <pabelanger@redhat.com>
35 lines
1.3 KiB
YAML
35 lines
1.3 KiB
YAML
# We don't want this to run for every host, it should only run once.
|
|
- run_once: yes
|
|
block:
|
|
- name: Setup log path fact
|
|
include_role:
|
|
name: set-zuul-log-path-fact
|
|
|
|
- name: Print job information
|
|
debug:
|
|
msg: |
|
|
# Job Information
|
|
Ansible Version: {{ ansible_version['full'] }}
|
|
Job: {{ zuul.job }}
|
|
Pipeline: {{ zuul.pipeline }}
|
|
Executor: {{ zuul.executor.hostname }}
|
|
{% if zuul.change_url is defined %}
|
|
Triggered by: {{ zuul.change_url }}
|
|
{% endif %}
|
|
{% if zuul_log_url is defined and zuul_log_path is defined %}
|
|
Log URL (when completed): {{ zuul_log_url }}/{{ zuul_log_path }}/
|
|
{% endif %}
|
|
|
|
- name: Print node information
|
|
debug:
|
|
msg: |
|
|
# Node Information
|
|
Hostname: {{ hostvars[item]['ansible_hostname']|default('unknown') }}
|
|
Provider: {{ hostvars[item]['nodepool']['provider'] }}
|
|
Label: {{ hostvars[item]['nodepool']['label'] }}
|
|
{% if hostvars[item]['nodepool']['interface_ip'] is defined %}
|
|
Interface IP: {{ hostvars[item]['nodepool']['interface_ip'] }}
|
|
{% endif %}
|
|
loop: "{{ query('inventory_hostnames', 'all,!localhost') }}"
|
|
ignore_errors: yes
|