add ansible inventory
This commit is contained in:
parent
8689365896
commit
b3e782b6eb
@ -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 main.yml --vault-password-file ~/ansible/.vault_pass.txt
|
~/.local/bin/ansible-playbook -i inventory 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"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user