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 -u root PLAY [GET] 
********************************************************************* TASK 
[CHECK-NETCONF] *********************************************************** ok: 
[10.10.10.11] TASK [Retrive information from devices running Junos OS] 
*********************** fatal: [10.10.10.11]: FAILED! => {"failed": true, 
"msg": "ERROR! the handler 'juniper_junos_facts' was not found"} PLAY RECAP 
********************************************************************* 
10.10.10.11 : ok=1 changed=0 unreachable=0 failed=1 FATAL: command execution 
failed hudson.AbortException: Ansible playbook execution failed at 
org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform(AnsiblePlaybookBuilder.java:236)
 at 
org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform(AnsiblePlaybookBuilder.java:207)
 at 
hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
 at hudson.model.Build$BuildExecution.build(Build.java:206) at 
hudson.model.Build$BuildExecution.doRun(Build.java:163) at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) 
at hudson.model.Run.execute(Run.java:1724) at 
hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at 
hudson.model.ResourceController.execute(ResourceController.java:97) at 
hudson.model.Executor.run(Executor.java:421) ERROR: Ansible playbook execution 
failed Finished: FAILURE --
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 it, send an email 
to ansible-project+unsubscr...@googlegroups.com 
(mailto:ansible-project+unsubscr...@googlegroups.com).
To post to this group, send email to ansible-project@googlegroups.com 
(mailto:ansible-project@googlegroups.com).
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/785bdd9b-a0c5-4bcc-bc71-e675351011e5%40googlegroups.com
 
(https://groups.google.com/d/msgid/ansible-project/785bdd9b-a0c5-4bcc-bc71-e675351011e5%40googlegroups.com?utm_medium=email&utm_source=footer).
For more options, visit https://groups.google.com/d/optout 
(https://groups.google.com/d/optout). 

Hi,

It seems to me that juniper_junos_facts is not a standard module, as you can 
see here :
http://docs.ansible.com/ansible/latest/list_of_network_modules.html#junos

juniper_junos_facts seems an external module as you can see here :
http://junos-ansible-modules.readthedocs.io/en/2.0.0/juniper_junos_facts.html
https://github.com/Juniper/ansible-junos-stdlib 
(https://github.com/Juniper/ansible-junos-stdlib)

So did you properly modify ansible.cfg to be able to use these external modules 
?

Regards,

JYL

-- 
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 it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ebeda3337f71554bc1a4281aeb4a779c%40wwws.lenhof.eu.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to