Merge "Remove /hosts from log outputs"

This commit is contained in:
Zuul
2019-04-05 23:13:43 +00:00
committed by Gerrit Code Review

View File

@@ -2,7 +2,7 @@
tasks: tasks:
- name: Make log directories for testing hosts - name: Make log directories for testing hosts
file: file:
path: "{{ zuul.executor.log_root }}/hosts/{{ item }}/logs" path: "{{ zuul.executor.log_root }}/{{ item }}/logs"
state: directory state: directory
recurse: true recurse: true
loop: "{{ query('inventory_hostnames', 'all') }}" loop: "{{ query('inventory_hostnames', 'all') }}"
@@ -12,7 +12,7 @@
path: "{{ item }}" path: "{{ item }}"
state: directory state: directory
with_items: with_items:
- "{{ zuul.executor.log_root }}/hosts/bridge.openstack.org/ara-report" - "{{ zuul.executor.log_root }}/bridge.openstack.org/ara-report"
- hosts: all - hosts: all
tasks: tasks:
@@ -49,7 +49,7 @@
tasks: tasks:
- name: Set log directory - name: Set log directory
set_fact: set_fact:
log_dir: "{{ zuul.executor.log_root }}/hosts/{{ inventory_hostname }}" log_dir: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
# Because during the test we run ansible as root, we need # Because during the test we run ansible as root, we need
# to allow ourselves permissions to copy the results # to allow ourselves permissions to copy the results