ansible-desktop/deploy.sh

12 lines
241 B
Bash
Executable file

#!/bin/sh
# 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