Debian Codegraph @

test/integration/targets/gather_facts-errors/tasks/main.yml

raw
1 - name: Gather facts with tracebacks enabled
2 shell: ansible-playbook {{role_path}}/test_gather_facts.yml
3 environment:
4 ANSIBLE_DISPLAY_TRACEBACK: error
5 register: with_traceback
6
7 - assert:
8 that:
9 - with_traceback.stdout is contains "Sub-Event 1 of 2"
10 - with_traceback.stdout is contains "Sub-Event 2 of 2"
11 - with_traceback.stdout is contains "Sub-Traceback 1 of 2"
12 - with_traceback.stdout is contains "Sub-Traceback 2 of 2"
13 - with_traceback.stdout is search "(?s)Traceback .*/action/gather_facts\.py"
14 - with_traceback.stdout is search "(?s)Traceback .* The following modules failed to execute"
15 - with_traceback.stdout is search "(?s)Traceback .* the fail1 module went bang"
16 - with_traceback.stdout is search "(?s)Traceback .* the fail2 module went bang"