Set default inventory
This commit is contained in:
parent
1a4652fd87
commit
05d3f82caf
|
@ -22,8 +22,8 @@ Create a read-only token in NetBox. Define required variables:
|
||||||
|
|
||||||
Run one-off tasks with (add `--key-file` or other options as necessary):
|
Run one-off tasks with (add `--key-file` or other options as necessary):
|
||||||
|
|
||||||
ansible -i inventory.yml -m ping 'server-*'
|
ansible -m ping 'server-*'
|
||||||
|
|
||||||
Run a playbook with:
|
Run a playbook with:
|
||||||
|
|
||||||
ansible-playbook setup.yml -i inventory.yml -l 'server-*'
|
ansible-playbook setup.yml -l 'server-*'
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
[defaults]
|
[defaults]
|
||||||
|
nocows = true
|
||||||
|
inventory = inventory.yml
|
||||||
remote_user = root
|
remote_user = root
|
||||||
|
|
Loading…
Reference in a new issue