ansible-navigator
ansible-navigator copied to clipboard
Accept playbook argument when run is the default app
ISSUE TYPE
- Feature Idea
SUMMARY
With the following config, I can run the playbook playbook.yml with by only typing ansible-navigator.
ansible-navigator:
ansible:
playbook:
path: playbook.yml
app: run
If you remove the playbook path from the config, to allow the user to specify another one, this shortcut breaks.
⇨ ansible-navigator playbook.yml
Warning: Issues were found while applying the settings.
Hint: Command provided: 'playbook.yml'
Error: argument {subcommand} --help: invalid choice: 'playbook.yml' (choose from 'builder', 'collections', 'config', 'doc',
'exec', 'images', 'inventory', 'lint', 'replay', 'run', 'settings', 'welcome')
The goal is simple to have a 1-to-1 keyword replacement to ansible-navigator. Yes, I'm lazy. This is super low priority, but wanted to leave here in case we can avoid this CLI check in case the default app is run.
Thanks