ansible

Module Contents

ansible.install_deps()

Download and install any external dependencies required for Ansible to run.

ansible.report_from_output(lines, to_file=None)

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.

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.)