Skip to content

Commit

Permalink
fix: disable ROOT remove on playbook errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KoLiBer committed Nov 26, 2024
1 parent c3dbb44 commit 42a0ff3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/playbook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,9 @@ ${key}:
EOF

%{ if playbook != "" ~}
ansible-playbook -i $ROOT/inventory.yml ${extra_args} ${playbook}; CODE=$?
ansible-playbook -i $ROOT/inventory.yml ${extra_args} ${playbook}
%{ else ~}
CODE=0
%{ endif ~}

rm -Rf $ROOT
exit $CODE

0 comments on commit 42a0ff3

Please sign in to comment.