cancel
Showing results for 
Search instead for 
Did you mean: 
Scott-B
Mission Specialist
Mission Specialist
  • 536 Views

how to get ansible-navigator to use -m stdout by default?

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!

2 Replies
rhnoname
Flight Engineer Flight Engineer
Flight Engineer
  • 515 Views

In the ansible-navigator.yml specify mode: stdout. The default should be mode: interactive.

Best Regards
DarrenB
Cadet
Cadet
  • 67 Views

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)

0 Kudos
Join the discussion
You must log in to join this conversation.