ansible-desktop/deploy.sh

16 lines
265 B
Bash
Executable file

#!/bin/sh
set -eu
# run sudo to cache creds
sudo /bin/true
# update modules and check depencies
git pull
git submodule update --init --recursive
if ! rpm -q ansible > /dev/null; then
sudo dnf -y install ansible
fi
# run playbook
ansible-playbook deploy.yml