run playbook
This commit is contained in:
parent
e4c2b4f26b
commit
3cc4824735
@ -137,6 +137,14 @@ chronyc -a makestep
|
||||
if [ $? -ne 0 ]; then printError "Problem to update date and time";exit; fi
|
||||
printSuccess "Date and Time updated successfully"
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# execute playbook
|
||||
#-----------------------------------------------------------------------------
|
||||
printInfo "Execute playbook"
|
||||
~/.local/bin/ansible-playbook main.yml --vault-password-file ~/ansible/.vault_pass.txt
|
||||
if [ $? -ne 0 ]; then printError "Problem to execute playbook";exit; fi
|
||||
printSuccess "Ansible playbook finished"
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# set timezone
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user