Jan Kundrát | 4d40a68 | 2023-01-13 16:33:05 +0100 | [diff] [blame] | 1 | - name: Create logs directory |
2 | file: | ||||
3 | path: "{{ ansible_user_dir }}/zuul-output/logs" | ||||
4 | state: directory | ||||
5 | mode: 0755 | ||||
6 | |||||
7 | - name: Save system journal | ||||
8 | shell: "journalctl -b &> {{ ansible_user_dir }}/zuul-output/logs/journal.txt" | ||||
9 | args: | ||||
10 | executable: /bin/bash | ||||
11 | become: yes | ||||
12 | failed_when: false |