Add installation of community modules to deploy.sh

This commit is contained in:
Sam A. 2022-11-10 22:03:49 +01:00
parent 5f718e1027
commit d597a956ff
Signed by untrusted user: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -2,6 +2,11 @@
BASE_CMD="ansible-playbook playbook.yml --ask-vault-pass"
if [ -z "$(ansible-galaxy collection list community.general 2>/dev/null)" ]; then
echo "Installing community modules"
ansible-galaxy collection install community.general
fi
if [ -z "$1" ]; then
echo "Deploying all!"
$BASE_CMD