Make it possible to deploy a single service in Vagrant

This commit is contained in:
Sam A. 2022-11-26 00:52:12 +01:00
parent 7786115387
commit 2603852f1c
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
2 changed files with 7 additions and 1 deletions

View file

@ -2,8 +2,13 @@
BASE_CMD="ansible-playbook playbook.yml --ask-vault-pass"
if [ "$1" = "--vagrant" ]; then
BASE_CMD="$BASE_CMD --inventory=vagrant_host"
shift
fi
if [ -z "$(ansible-galaxy collection list community.general 2>/dev/null)" ]; then
echo "Installing community modules"
echo "Installing community.general modules"
ansible-galaxy collection install community.general
fi

1
vagrant_host Normal file
View file

@ -0,0 +1 @@
localhost ansible_port=19022