Fixed update script
This commit is contained in:
parent
233cf177cd
commit
d9a2345dab
1 changed files with 9 additions and 1 deletions
10
update
10
update
|
|
@ -2,4 +2,12 @@
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "" > ansible.log
|
echo "" > ansible.log
|
||||||
/workspace/dev/ansible/minilab/.venv/bin/ansible-playbook update.yaml $@
|
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 update.yaml $@
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue