Use inventory in ansible.cfg #60

Merged
graffen merged 1 commit from hosts into master 2021-03-05 07:50:01 +00:00
2 changed files with 2 additions and 1 deletions

View file

@ -1,2 +1,3 @@
[defaults] [defaults]
remote_user = root remote_user = root
inventory = datacoop_hosts

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
BASE_CMD="ansible-playbook playbook.yml -i datacoop_hosts --ask-vault-pass" BASE_CMD="ansible-playbook playbook.yml --ask-vault-pass"
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "Deploying all!" echo "Deploying all!"