Hey there,
I reported a similar issue some time ago. (see my mail below)
I can not get the Callback Plugin to work. Do you have issues there as
well, David, Philipp? If not, can I ask how you set the ansible plugin
and the callback up?
The problem with fact importing I have as well! Foreman 1.14.
Hello there,
I was hoping to get some help with the Foreman-Ansible Plugin, because
I am having a problem I cannot resolve myself.
My Foreman is Version 1.14
I set up everything according to the instructions found on
https://theforeman.org/plugins/foreman_ansible/1.x/index.html
Additionally I ran foreman-installer -i to set up
foreman_proxy_plugin_ansible
foreman_proxy_plugin_remote_execution_ssh
foreman_plugin_ansible
I kickstarted a host "centos7.dev" from Foreman, that has basically
only a puppet environment and a puppet master (the foreman server itself).
I added "centos7.dev" as a trusted puppetmaster host and added an
ansible role to it.
When I am trying to run that role , the run itself works, however I
get this error on the RECAP
PLAY RECAP *********************************************************************
centos7.dev : ok=9 changed=0 unreachable=0 failed=0
[WARNING]: Failure using method (v2_playbook_on_stats) in callback plugin
(</usr/lib/python2.7/site-
packages/ansible/plugins/callback/foreman.CallbackModule object at 0x1753f90>):
[Errno 2] No such file or directory
I don't see a tab for "facts" in my host view and I have no reports
resulting from the play.
Can anybody maybe help me with that?
Many thanks in advance.
Many thanks in advance.
On 05/26/2017 02:37 PM, Philipp Wehling wrote:
Same here with Foreman/Katello 1.13.4 and ansible 2.3
Am Dienstag, 23. Mai 2017 09:43:01 UTC+2 schrieb David LeVene:
Hey All,
I've just installed foreman & ansible freshly on Cent OS7.
Foreman works fine, I wrote a basic playbook that gathers the
facts and copies a file in place.
|
---
-name:test the ansible
hosts:
-foreman.levene.local
gather_facts:yes
tasks:
-name:test the file
copy:src=/tmp/aa dest=/etc/
|
This all works OK, and it creates the hosts (followed
https://theforeman.org/plugins/foreman_ansible/1.x/index.html
<https://theforeman.org/plugins/foreman_ansible/1.x/index.html>)
|
PLAY [test the
ansible]********************************************************************************************************************************************************************************
TASK
[GatheringFacts]*********************************************************************************************************************************************************************************
ok:[foreman.levene.local]
TASK [test the
file]***********************************************************************************************************************************************************************************
ok:[foreman.levene.local]
PLAY RECAP
*********************************************************************************************************************************************************************************************
foreman.levene.local:ok=2 changed=0 unreachable=0 failed=0
|
In foreman however, the host has no facts. I can see them all
gathered in the report, but they don't seem to be correctly
detected/imported into foreman facts.
Is this a bug? or have I missed a setting somewhere?
Thanks
David
--
You received this message because you are subscribed to the Google
Groups "Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.
--
Herzliche Grüße aus München
Bernhard Hopfenmüller
______________________________________________________
Dr. Bernhard Hopfenmüller
(IT-Consultant)
Tel: +49 (0)89 452 35 38-165
Fax: +49 (0)89 452 35 38-290
E-Mail: [email protected]
XING: https://www.xing.com/profile/Bernhard_Hopfenmueller?sc_o=mxb_p
LinkedIn: https://de.linkedin.com/in/bernhard-hopfenmüller-74a83095
ATIX - The Linux & Open Source Company
ATIX Informationstechnologie und Consulting AG
Einsteinstraße 10
85716 Unterschleißheim
www.atix.de
Registergericht: Amtsgericht München, Registernummer: HRB 168930
USt.-Id.: DE209485962
Vorstand: Thomas Merz (Vors.), Mark Hlawatschek
Vorsitzender des Aufsichtsrats: Dr. Martin Bus
--
You received this message because you are subscribed to the Google Groups "Foreman
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.