tripleo-upgrade/tasks/common/create_log_collection_scripts.yml
Sofer Athlan-Guyot d65c814286 Add log collection during update.
Currently, the jobs only collect log at the end of the update.

Add some log collection during the update to the /var/log/extra
directory of each host to get information before the update and during
the update to ease debugging.

Change-Id: I2c4b59b2ab8f8b0d64c9982b528d927d3f6f2436
2023-02-14 12:03:09 +01:00

16 lines
361 B
YAML

---
- block:
- name: create log playbook
template:
src: "collect_logs.yaml.j2"
dest: "{{ log_playbook }}"
mode: 0775
- name: create script to run log playbook
template:
src: "collect_logs.sh.j2"
dest: "{{ log_playbook_script }}-{{ log_current_stage }}.sh"
mode: 0775
when: log_stages|bool