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: samsapti
GPG Key ID: CBBBE7371E81C4EA
1 changed files with 5 additions and 0 deletions

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