mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-29 21:10:20 +08:00
@@ -138,27 +138,24 @@
|
||||
poll: 0
|
||||
when: starting_builder
|
||||
|
||||
- name: make sure the enable-swap service has already finished
|
||||
ansible.builtin.shell: "systemctl is-active enable-swap || :"
|
||||
register: enable_swap_active
|
||||
until: "'inactive' in enable_swap_active.stdout or 'failed' in enable_swap_active.stdout"
|
||||
- name: make sure the copr-partitions service has already finished
|
||||
ansible.builtin.shell: "systemctl is-active copr-partitions || :"
|
||||
register: copr_partitions_active
|
||||
until: "'inactive' in copr_partitions_active.stdout or 'failed' in copr_partitions_active.stdout"
|
||||
retries: 20
|
||||
delay: 1
|
||||
when: starting_builder
|
||||
|
||||
- name: debug the swap failure
|
||||
ansible.builtin.shell: journalctl -u enable-swap
|
||||
- name: read partitioning logs
|
||||
ansible.builtin.shell: journalctl -u copr-partitions
|
||||
register: journalctl_output
|
||||
when:
|
||||
- starting_builder
|
||||
- "'failed' in enable_swap_active.stdout"
|
||||
|
||||
- name: print out the enable-swap failure logs
|
||||
- name: print out the copr-partitions logs
|
||||
debug: var=journalctl_output.stdout_lines
|
||||
when:
|
||||
- starting_builder
|
||||
- "'failed' in enable_swap_active.stdout"
|
||||
failed_when: true
|
||||
|
||||
- name: Collect facts about builder hardware
|
||||
setup:
|
||||
|
||||
Reference in New Issue
Block a user