Skip to content

Commit

Permalink
chore: update ansible args
Browse files Browse the repository at this point in the history
  • Loading branch information
OldTyT authored Nov 12, 2023
1 parent a7a240b commit 8beba12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ echo "$SSH_KEY_PRIVATE"|base64 -d > /root/.ssh/id_rsa
chmod 600 /root/.ssh/id_rsa

if [ "$TYPE" = "diff" ]; then
ansible-playbook --diff -i ./inventory.yml playbook.yml && exit
ansible-playbook --check --diff -i ./inventory.yml playbook.yml && exit
fi
if [ "$TYPE" = "test" ]; then
python3 /tester.py | bash && exit
fi
if [ "$TYPE" = "play" ]; then
ansible-playbook -i ./inventory.yml playbook.yml && exit
ansible-playbook --diff -i ./inventory.yml playbook.yml && exit
else
echo "Invalid env value - $TYPE"
exit 1
Expand Down

0 comments on commit 8beba12

Please sign in to comment.