ansible: don't crash when adhoc tries to run a missing module.
ansible-playbook prints a separate error during parsing stage, adhoc performs no such check.pull/350/head
parent
34a9f67115
commit
6c4b01642c
@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
- name: integration/runner/missing_module.yml
|
||||||
|
hosts: test-targets
|
||||||
|
connection: local
|
||||||
|
tasks:
|
||||||
|
- connection: local
|
||||||
|
command: ansible -i localhost, localhost -m missing_module
|
||||||
|
args:
|
||||||
|
chdir: ../..
|
||||||
|
register: out
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that: |
|
||||||
|
'The module missing_module was not found in configured module paths.' in out.stdout
|
||||||
Loading…
Reference in New Issue