Skip to content
Snippets Groups Projects
Commit f0c66297 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Dynamically retrieve the location of ARA to work on both py2 & py3"

parents fee73e35 77f1812e
No related branches found
No related tags found
No related merge requests found
...@@ -132,9 +132,10 @@ function setup_ansible { ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment