Re: [ansible-project] Re: Ansible & Jenkins integration issue

2018-02-02 Thread GornerM
Jenkins and cli used different ansible versions. To avoid this error I just updated version of ansible from 2.0.0.2 to 2.4.3.0 inside of Jenkins. Thank you for supporting. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from

Re: [ansible-project] Re: Ansible & Jenkins integration issue

2018-02-01 Thread GornerM
I have launched empty Ubuntu 16.04 system and installed ansible & required ansible modules in following way: - sudo su apt-get install python-pip apt-get install python-dev libxml2-dev libxslt-dev libssl-devlibffi-dev pip install junos-eznc apt-get install ansible ansible-galaxy instal

Re: [ansible-project] Re: Ansible & Jenkins integration issue

2018-02-01 Thread GornerM
root@Jenkins:~/Project_22.01.2018# pwd /root/Project_22.01.2018 root@Jenkins:~/Project_22.01.2018# ll total 60 drwxr-xr-x 5 root root 4096 Feb 1 14:56 ./ drwx-- 7 root root 4096 Feb 1 14:56 ../ -rw-r--r-- 1 root root 338 Feb 1 14:56 ansible.cfg drwxr-xr-x 8 root root 4096 Feb 1 14:46 .

Re: [ansible-project] Re: Ansible & Jenkins integration issue

2018-02-01 Thread GornerM
I have launched empty Ubuntu 16.04 system and installed ansible & required ansible modules in following way: sudo apt-get install python-pip sudo apt-get install python-dev libxml2-dev libxslt-dev libssl-dev libffi-dev sudo pip install junos-eznc apt-get install ansible ansible-g

Re: [ansible-project] Re: Ansible & Jenkins integration issue

2018-01-31 Thread GornerM
ansible.cfg can be found in the current directory, so my test ansible project currently looks like: | |- ansible.cfg |- hosts |- test2.yml |- roles - Juniper.junos - library - juniper_junos_facts.py All of this files also are located in jenkins workspace. -- You received this message becau

Re: [ansible-project] Re: Ansible & Jenkins integration issue

2018-01-31 Thread GornerM
Yes, juniper_junos_facts is external module. The roles directory is contained Juniper.junos role ( https://github.com/Juniper/ansible-junos-stdlib ) ---

[ansible-project] Re: Ansible & Jenkins integration issue

2018-01-31 Thread GornerM
I've received the same error result with or without ansible plagin. Here is the last jenkins output log with ansible plugin: [Job_gitlab_ansible_2] $ /usr/bin/ansible-playbook test2.yml -i hosts -f 5 --private-key /tmp/ssh1443101965150836988.key -u root PLAY [GET] *

[ansible-project] Re: Ansible & Jenkins integration issue

2018-01-31 Thread GornerM
I've received the same error result with or without ansible plagin. Here is the last jenkins output log with ansible plugin: [Job_gitlab_ansible_2] $ /usr/bin/ansible-playbook test2.yml -i hosts -f 5 --private-key /tmp/ssh1443101965150836988.key -u root PLAY [GET] *

[ansible-project] Ansible & Jenkins integration issue

2018-01-30 Thread GornerM
Ansible playbooks passes without any issues, when I run it directly from cli (also inside of Jenkins workspace) But I receives the following error "FAILED! => {"failed": true, "msg": "ERROR! the handler 'juniper_junos_facts' was not found" when ansible runs by execution of Jenkins job. juniper