when troubleshooting or building new playbooks etc how do I get ansible-navigator to output -m stdout without having to type that each time. I have been looking for options in ansible.cfg and ansible-navigator.cfg but haven't found that.
Anyone have any idea how to set this?
Thanks!
In the ansible-navigator.yml specify mode: stdout. The default should be mode: interactive.
For a somewhat 'one off'/session based approach (say you don't want it to be permanent and effect an exam grading script), you can use the environment override
export ANSIBLE_NAVIGATOR_MODE=stdout
it'll apply to just that shell, and revert to whatever is in the your config files (in other terminals, or when you log off)
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.