On 08/03, 'KaneK' via Foreman users wrote:
>
> >
> > Morning,
> >
>
> I did a bit more poking around and now i have an error message that may
> actually be helpful;
>
> ansible-playbook -i 'gtrnliwsts3.localdomain.net,'
> /etc/ansible/roles/test-playbook.yml
> plugin foreman_callback.py: SSL verification of
> https://gtrnliwsts2.localdomain.net disabled
>
> PLAY [all]
> *********************************************************************
>
> TASK [setup]
> *******************************************************************
> ok: [gtrnliwsts3.localdomain.net]
>  [WARNING]: Failure using method (v2_runner_on_ok) in callback plugin
> (</root/.ansible/plugins/callback_plugins/foreman_callback.CallbackModule
> object at 0x2fe3050>): [Errno
> 2] No such file or directory
>
>
> TASK [command]
> *****************************************************************
> changed: [gtrnliwsts3.localdomain.net]
>
> PLAY RECAP
> *********************************************************************
> gtrnliwsts3.localdomain.net : ok=2    changed=1    unreachable=0    failed=0
>
>  [WARNING]: Failure using method (v2_playbook_on_stats) in callback plugin
> (</root/.ansible/plugins/callback_plugins/foreman_callback.CallbackModule
> object at 0x2fe3050>):
> [Errno 2] No such file or directory

Thanks for the log. That's certainly helpful. At first glance it looks
like you're using Ansible 2, which I haven't tested with the callback.
What's the output of 'ansible --version'?

Can you open your callback plugin file
(.ansible/plugins/callback_plugins/foreman_callback.py) and add a method
'v2_playbook_on_stats'? It'd be identical to the one you see here
(playbook_on_stats).
https://github.com/theforeman/foreman_ansible/blob/master/extras/foreman_callback.py#L212

Let me know if that fixes the problem, if it works, feel free to send a pull
request to that repository or I'll do it myself. Thanks for reporting
the issue :)


--
Daniel Lobato Garcia

@dLobatog
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato

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

Attachment: signature.asc
Description: PGP signature

Reply via email to