-
Improvement
-
Resolution: Unresolved
-
Minor
-
Jenkins v1.625.3
CentOS 7.2
When we install Ansible from source, we need to source the below script to make the ansible environment ready. It would be great if this option is available in 'Configure System'
git clone https://github.com/ansible/ansible.git --recursive
cd ansible
source ./hacking/env-setup
In the absence of above, Jenkins throw below error.
01:28:03 + /ansible/bin/ansible-playbook -v /etc/ansible/playbooks/ping_all.yaml
01:28:03 Traceback (most recent call last):
01:28:03 File "/ansible/bin/ansible-playbook", line 39, in <module>
01:28:03 from ansible.errors import AnsibleError, AnsibleOptionsError, AnsibleParserError
01:28:03 ImportError: No module named ansible.errors
As a work around, I have placed 'source ./hacking/env-setup' in /root/.bashrc executed SSH commands on 127.0.0.1.