Use more restrictive shell options
This commit is contained in:
parent
06bc11d54a
commit
2eb5f6b15f
1 changed files with 5 additions and 1 deletions
|
@ -1,12 +1,16 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
# run sudo to cache creds
|
# run sudo to cache creds
|
||||||
sudo /bin/true
|
sudo /bin/true
|
||||||
|
|
||||||
# update modules and check depencies
|
# update modules and check depencies
|
||||||
git pull
|
git pull
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
rpm -q ansible > /dev/null || sudo yum -y install ansible
|
if ! rpm -q ansible > /dev/null; then
|
||||||
|
sudo yum -y install ansible
|
||||||
|
fi
|
||||||
|
|
||||||
# run playbook
|
# run playbook
|
||||||
ansible-playbook deploy.yml
|
ansible-playbook deploy.yml
|
||||||
|
|
Loading…
Add table
Reference in a new issue