12 lines
243 B
Bash
Executable file
12 lines
243 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# run sudo to cache creds
|
|
sudo /bin/true
|
|
|
|
# update modules and check depencies
|
|
git pull
|
|
git submodule update --init --recursive
|
|
rpm -q ansible > /dev/null || sudo yum -y install ansible
|
|
|
|
# run playbook
|
|
ansible-playbook deploy.yml
|