|
75 | 75 | - legacy.deprecations | default([]) | length > 0 |
76 | 76 | fail_msg: legacy={{legacy}} |
77 | 77 | # only check for a dep warning if legacy returned /usr/bin/python and auto didn't |
78 | | - when: legacy.ansible_facts.discovered_interpreter_python == '/usr/bin/python' and |
79 | | - auto_out.ansible_facts.discovered_interpreter_python != '/usr/bin/python' and |
80 | | - ansible_version.full is version_compare('2.12.0', '<', strict=True) |
| 78 | + when: |
| 79 | + - legacy.ansible_facts.discovered_interpreter_python == '/usr/bin/python' |
| 80 | + - auto_out.ansible_facts.discovered_interpreter_python != '/usr/bin/python' |
| 81 | + - ansible_version.full is version_compare('2.12.0', '<', strict=True) |
81 | 82 |
|
82 | 83 | - name: check for warning (only on platforms where auto result is not /usr/bin/python and legacy is) from ansible 2.12 on |
83 | 84 | assert: |
84 | 85 | that: |
85 | 86 | - legacy.warnings | default([]) | length > 0 |
86 | 87 | fail_msg: legacy={{legacy}} |
87 | 88 | # only check for a warning if legacy returned /usr/bin/python and auto didn't |
88 | | - when: legacy.ansible_facts.discovered_interpreter_python == '/usr/bin/python' and |
89 | | - auto_out.ansible_facts.discovered_interpreter_python != '/usr/bin/python' and |
90 | | - ansible_version.full is version_compare('2.12.0', '>=', strict=True) |
| 89 | + when: |
| 90 | + - legacy.ansible_facts.discovered_interpreter_python == '/usr/bin/python' |
| 91 | + - auto_out.ansible_facts.discovered_interpreter_python != '/usr/bin/python' |
| 92 | + - ansible_version.full is version_compare('2.12.0', '>=', strict=True) |
91 | 93 |
|
92 | 94 | - name: test that auto_silent never warns and got the same answer as auto |
93 | 95 | block: |
|
0 commit comments