ansible
Module Contents
- ansible.RHC_WORKER_PLAYBOOK_COLLECTIONS
- ansible.install_deps()
Download and install any external dependencies required for Ansible to run.
- ansible.report_from_output(lines, to_file=None, failure='error')
Process ‘ansible-playbook’ output, hide useless info, and report important info.
If ‘to_file’ was specified as a file path, redirect ansible-playbook outputs to it, instead of leaving them on the console.
The ‘failure’ argument dictates what status to use for failing playbook results. The default ‘error’ is sensible for uses where the playbook is not the test itself. If it is, set it to ‘fail’.
Return True whether there was at least one ‘failed’ module check. This can be used by the caller to differentiate between ansible-playbook exit code 2 due to failed checks vs the same exit code due to bad args, etc. (False && exit code 2 means a task-unrelated problem.)