- name: Create logs directory | |
file: | |
path: "{{ ansible_user_dir }}/zuul-output/logs" | |
state: directory | |
mode: 0755 | |
- name: Save system journal | |
shell: "journalctl -b &> {{ ansible_user_dir }}/zuul-output/logs/journal.txt" | |
args: | |
executable: /bin/bash | |
become: yes | |
failed_when: false |