Debian Codegraph @

test/integration/targets/missing-interpreter/tasks/main.yml

raw
1 - name: Run a module with a full path to a non-existent interpreter
2 ping:
3 vars:
4 ansible_python_interpreter: /bogus/path
5 ignore_errors: yes
6 register: result
7
8 - name: Verify the action failed as expected
9 assert:
10 that:
11 - result is failed
12 - result.msg == "The module interpreter '/bogus/path' was not found."
13
14 - name: Run a module with an unqualified path to a non-existent interpreter
15 ping:
16 vars:
17 ansible_python_interpreter: bogus_interpreter
18 ignore_errors: yes
19 register: result
20
21 - name: Verify the action failed as expected
22 assert:
23 that:
24 - result is failed
25 - result.msg == "The module interpreter 'bogus_interpreter' was not found."