From 3cc4824735bec08a9a5b895a0f6584d9e01a3294 Mon Sep 17 00:00:00 2001 From: Gilles Mouchet Date: Tue, 21 May 2024 23:59:12 +0200 Subject: [PATCH] run playbook --- inst-raps.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/inst-raps.sh b/inst-raps.sh index 3b59d0a..3b5ebb7 100755 --- a/inst-raps.sh +++ b/inst-raps.sh @@ -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 #-----------------------------------------------------------------------------