Run Ansible playbook without inventory -


consider if want check quickly. doesn't need connecting host (to check how ansible works, like, including of handlers or something). or localhost do. i'd give on this, man page says:

-i path, --inventory=path

the path inventory, defaults /etc/ansible/hosts. alternatively, can use comma-separated list of hosts or single host trailing comma host,.

and when run ansible-playbook without inventory, says:

[warning]: provided hosts list empty, localhost available

is there easy way run playbook against no host, or localhost?

as @ydaetskcor suggested, it's follows:

$ ansible-playbook playbook.yml -i localhost, -k 

and test playbook, matter

- hosts:   tasks:     - debug: msg=test 

Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -