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 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 from

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 works

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 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] > > inventory=./hosts > > remote_

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 ) ---

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 Je

[ansible-project] Re: Ansible + Jenkins

2015-09-15 Thread abraham
i configure like as below for ci 1)i configured Jenkins,maven and git 2) In that .war file to upload to S3 bucket uisng publish artifacts to s3 bucket plugin 3) create new EC2 instance using cloud formation template from S3 bucket using cloud formation plugin 4) now i want to configure Ansibl

[ansible-project] Re: Ansible + Jenkins

2014-11-17 Thread J Hawkesworth
You can use 'Publish over SSH' module to call a remote system running ansible. Configure your ansible host in Jenkins -> Manage Jenkins -> Configure System Then you can add a post build action called 'Send Build artifacts over ssh'. Select your ansible host and then in the Transfers section, spe