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

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

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

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

2018-01-31 Thread Malcolm Hussain-Gambles
>From the cli version, try running two commands pwd and ls -l So you can see if it's putting you in the directory you think you are -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails

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

2018-01-31 Thread jean-yves
31 janvier 2018 14:31 "GornerM" a écrit: 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

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

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

2018-01-31 Thread jean-yves
31 janvier 2018 12:02 "GornerM" a écrit: > Yes, juniper_junos_facts is external module. > The roles directory is contained Juniper.junos role > (https://github.com/Juniper/ansible-junos-stdlib) > > --- > > Here is my ansible configuration: > > [defaults] > >

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 ) --- Here is my

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

2018-01-31 Thread jean-yves
31 janvier 2018 09:17 "GornerM" a écrit: 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

[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] Re: Ansible & Jenkins integration issue

2018-01-30 Thread Malcolm Hussain-Gambles
Are you using the ansible plugin within Jenkins? Or running it as a cli within jenkins? I've had no issues (yet) using the ansible plugin. On Tuesday, 30 January 2018 09:12:33 UTC, GornerM wrote: > > Ansible playbooks passes without any issues, when I run it directly from > cli (also inside of