system-config/roles-test/post.yaml
Ian Wienand 4c5030e478
openafs-client: get logs better
I'm not sure if something changed in dkms, but this log file is
helpful on centos 9-stream and the other check doesn't match anything.

Also update the README.rst slightly to be more in line with reality.

Change-Id: Ic8cab980ef43490eb1b3ca0b7a0d0c2329bb94ce
2023-04-27 16:12:00 +10:00

26 lines
857 B
YAML

- 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}
# NOTE(ianw) 2023-04-27 This follwoing find may be redundant
# now; it does not seem to match anything on centos 9-stream
# at least.
find /var/lib/dkms/ -type d -wholename "*/log" -exec cp -r --parents \{\} ${DKMS_MAKE_LOGS} \;
cp /var/lib/dkms/openafs/*/build/make.log ${DKMS_MAKE_LOGS}
chown zuul:zuul ${DKMS_MAKE_LOGS}
become: yes
- include_role:
name: stage-output