run playbook

This commit is contained in:
Gilles Mouchet 2024-05-21 23:59:12 +02:00
parent e4c2b4f26b
commit 3cc4824735

View File

@ -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
#-----------------------------------------------------------------------------