As far as hipchat, you are correct.  It was not fully updated for 2.0 and
is not compatible at this time.

On Monday, April 4, 2016, Chase Farrant <[email protected]> wrote:

> That fixed it! I had:
>
> bin_ansible_callbacks = true
>
>
> I also needed to add:
>
> callback_whitelist = mail
>
>
> Also, not 100% sure on this - It appears hipchat.py needs to be updated to
> v2.
> https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/callback/hipchat.py
> I tried whitelisting it as well, but received the following error message:
>
>
> ERROR! Unexpected Exception: 'CallbackModule' object has no attribute
> 'display' the full traceback was: Traceback (most recent call last): File
> "/usr/bin/ansible-playbook", line 86, in <module> sys.exit(cli.run()) File
> "/usr/lib/pymodules/python2.7/ansible/cli/playbook.py", line 150, in run
> results = pbex.run() File
> "/usr/lib/pymodules/python2.7/ansible/executor/playbook_executor.py", line
> 79, in run self._tqm.load_callbacks() File
> "/usr/lib/pymodules/python2.7/ansible/executor/task_queue_manager.py", line
> 173, in load_callbacks self._callback_plugins.append(callback_plugin())
> File "/usr/lib/pymodules/python2.7/ansible/plugins/callback/hipchat.py",
> line 70, in __init__ self.display.warning('HipChat token could not be
> loaded. The HipChat ' AttributeError: 'CallbackModule' object has no
> attribute 'display'
>
>
> I remember someone else ran into this with another plugin and it needed to
> be updated to v2 functions.
>
> On Monday, April 4, 2016 at 5:24:25 PM UTC-5, Timothy Appnel wrote:
>>
>> Are you running v2?  (Guessing so by @sivel's suggestion.) Did you
>> whitelist your callback in your config?
>>
>> Timothy Appnel
>> Principal Architect
>> Ansible by Red Hat
>>
>> GitHub: tima <https://www.github.com/tima>
>>
>> Twitter: @appnelgroup <https://www.twitter.com/@appnelgroup>
>>
>> On Mon, Apr 4, 2016 at 6:17 PM, Chase Farrant <[email protected]> wrote:
>>
>>> Hmmm, it appears to still not be working.
>>>
>>> I added that function with the mail() call I was using beforehand. No
>>> dice. If I move that call to the bottom of the script, it sends the
>>> email. It behaves as if none of the Callback functions are working. This
>>> also applies to the hipchat.py plugin I've been trying.
>>>
>>> I also I tried creating both a 'v2_playbook_on_stats' and
>>> 'playbook_on_stats' which didn't change anything.
>>>
>>>
>>>
>>> On Monday, April 4, 2016 at 3:34:33 PM UTC-5, Chase Farrant wrote:
>>>>
>>>> Wow that helped a bunch and clears up a bunch of questions I didn't
>>>> even know I had. Thanks!
>>>>
>>>> On Monday, April 4, 2016 at 3:07:19 PM UTC-5, Chase Farrant wrote:
>>>>>
>>>>> Hello all,
>>>>>
>>>>> I am probably missing something here. I'm trying to get this mail
>>>>> plugin working -
>>>>> https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/callback/mail.py
>>>>>
>>>>> If I edit the script by adding mail() to the end, I receive a basic
>>>>> email immediately with no information when I run a job template (I believe
>>>>> this is expected).
>>>>>
>>>>> The problem is I never receive a summary email when the job is
>>>>> complete. My assumption is this is supposed to wait around until the job 
>>>>> is
>>>>> completed, then send an email. As expected, I never receive an email at 
>>>>> all
>>>>> if I remove the mail() command I appended to the mail.py script.
>>>>>
>>>>> Does anyone have any insight in getting this to work?
>>>>>
>>>> --
>>> 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 [email protected].
>>> To post to this group, send email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/f24a9d2b-f70d-4a04-b8c9-98ff43ef1b6d%40googlegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/f24a9d2b-f70d-4a04-b8c9-98ff43ef1b6d%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> 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 [email protected]
> <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/1665150d-294c-4842-b153-9af9a7054ebf%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/1665150d-294c-4842-b153-9af9a7054ebf%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Matt Martz
@sivel
sivel.net

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD8N0v_uJHf8DxsxsnS3K_o6nxAVgnDWsdShkcP4Sd05hPc-mA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to