Open ruebenramirez opened 7 years ago
,
-i host
# Host and IP address ansible all -i example.com, ansible all -i 93.184.216.119,
# Requires 'hosts: all' in your playbook ansible-playbook -i example.com, playbook.yml
hosts: all
source: http://stackoverflow.com/a/18255256
playbook:
--- - hosts: '{{ target }}' ...
usage:
ansible-playbook playbook.yml --extra-vars "target=host1"
source: http://stackoverflow.com/a/18195217
apply a trailing
,
to your-i host
hosts: all
in the playbook seems scary to mesource: http://stackoverflow.com/a/18255256