Set default inventory

This commit is contained in:
Timotej Lazar 2024-04-27 10:57:32 +02:00
parent 1a4652fd87
commit 05d3f82caf
2 changed files with 4 additions and 2 deletions

View file

@ -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):
ansible -i inventory.yml -m ping 'server-*'
ansible -m ping 'server-*'
Run a playbook with:
ansible-playbook setup.yml -i inventory.yml -l 'server-*'
ansible-playbook setup.yml -l 'server-*'

View file

@ -1,2 +1,4 @@
[defaults]
nocows = true
inventory = inventory.yml
remote_user = root