14 lines
392 B
Text
14 lines
392 B
Text
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
clear
|
||
|
|
echo "" > ansible.log
|
||
|
|
ANSIBLE_PATH=ansible-playbook
|
||
|
|
|
||
|
|
if hash ansible-playbook 2>/dev/null; then
|
||
|
|
ANSIBLE_PATH=ansible-playbook
|
||
|
|
else
|
||
|
|
ANSIBLE_PATH=./.venv/bin/ansible-playbook
|
||
|
|
fi
|
||
|
|
|
||
|
|
$ANSIBLE_PATH --vault-password-file vault-password.txt -e 'ansible_user=root' -e 'ansible_private_key_file=/workspaces/minilab/ansible_ed25519' -e 'ansible_become_method=sudo' minilab.yaml $@
|