Merge "Dynamically retrieve the location of ARA to work on both py2 & py3"
This commit is contained in:
commit
f0c6629723
@ -132,9 +132,10 @@ function setup_ansible {
|
|||||||
setup_inventory
|
setup_inventory
|
||||||
|
|
||||||
sudo mkdir /etc/ansible
|
sudo mkdir /etc/ansible
|
||||||
|
ara_location=$(python -c "import os,ara; print(os.path.dirname(ara.__file__))")
|
||||||
sudo tee /etc/ansible/ansible.cfg<<EOF
|
sudo tee /etc/ansible/ansible.cfg<<EOF
|
||||||
[defaults]
|
[defaults]
|
||||||
callback_plugins = /usr/lib/python2.7/site-packages/ara/plugins/callbacks:\$VIRTUAL_ENV/lib/python2.7/site-packages/ara/plugins/callbacks
|
callback_plugins = ${ara_location}/plugins/callbacks
|
||||||
host_key_checking = False
|
host_key_checking = False
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user