diff --git a/deploy.sh b/deploy.sh index f899c66..477e6f6 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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 diff --git a/vagrant_host b/vagrant_host new file mode 100644 index 0000000..e247254 --- /dev/null +++ b/vagrant_host @@ -0,0 +1 @@ +localhost ansible_port=19022