- hosts: localhost tasks: - name: Make log directories for testing hosts file: path: "{{ zuul.executor.log_root }}/{{ item }}/logs" state: directory recurse: true loop: "{{ query('inventory_hostnames', 'all') }}" - hosts: all tasks: - name: Get dkms make logs shell: | DKMS_MAKE_LOGS=/var/lib/dkms-make-logs mkdir ${DKMS_MAKE_LOGS} find /var/lib/dkms/ -type d -wholename "*/log" -exec cp -r --parents \{\} ${DKMS_MAKE_LOGS} \; chown zuul:zuul ${DKMS_MAKE_LOGS} become: yes - include_role: name: stage-output