vm-ansible/run.sh
Kristóf Torma 8795639cbb
Some checks reported errors
continuous-integration/drone/push Build was killed
fix envvar
2023-03-05 18:33:40 +01:00

8 lines
296 B
Bash

#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
ansible-galaxy collection install -r requirements.yaml
#ansible-playbook --ask-become-pass --ask-pass -i inventory.yaml $1
ANSIBLE_CONFIG="$SCRIPT_DIR/ansible.cfg" ansible-playbook -i inventory.yaml $1