vm-ansible/run.sh

8 lines
296 B
Bash
Raw Normal View History

2022-02-05 19:37:52 +01:00
#!/bin/bash
2023-03-05 18:32:21 +01:00
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
2022-02-05 20:04:38 +01:00
ansible-galaxy collection install -r requirements.yaml
2023-03-05 18:32:21 +01:00
#ansible-playbook --ask-become-pass --ask-pass -i inventory.yaml $1
2023-03-05 18:33:40 +01:00
ANSIBLE_CONFIG="$SCRIPT_DIR/ansible.cfg" ansible-playbook -i inventory.yaml $1