remove invemtory

This commit is contained in:
Gilles Mouchet 2024-05-22 00:29:08 +02:00
parent b3e782b6eb
commit b9c8aa87ea
3 changed files with 2 additions and 3 deletions

View File

@ -151,7 +151,7 @@ printSuccess "/root/ansible/.vault_pass.txt exist"
# execute playbook # execute playbook
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
printInfo "Execute playbook" printInfo "Execute playbook"
~/.local/bin/ansible-playbook -i inventory main.yml --vault-password-file ~/ansible/.vault_pass.txt ~/.local/bin/ansible-playbook main.yml --vault-password-file ~/ansible/.vault_pass.txt
if [ $? -ne 0 ]; then printError "Problem to execute playbook";exit; fi if [ $? -ne 0 ]; then printError "Problem to execute playbook";exit; fi
printSuccess "Ansible playbook finished" printSuccess "Ansible playbook finished"

View File

@ -1 +0,0 @@
localhost

View File

@ -1,2 +1,2 @@
--- ---
- hosts: localhost - hosts: all