hipchat module problem

109 views
Skip to first unread message

jayc...@gmail.com

unread,
Nov 23, 2015, 1:26:53 PM11/23/15
to Ansible Project
I'm trying to do a simple hipchat module test.  Here's my playbook (note that we use an in-house hosted HipChat server, if that makes a difference):

test.yml:
---
- hosts: all
  tasks:
    - name: test hipchat v1 module 
      hipchat:
        api: "https://chat.mycompany.com/v1/
        token: 70fafbe800ad93f6c37dce3eed388c
        room: "53"
        msg: "Ansible notify test"
        validate_certs: no

$ ansible-playbook -i hosts test.yml

and this is what I get in output:

TASK: [test hipchat v1 module] ************************************************ 
failed: [web01.mycompany.com] => {"failed": true}
msg: failed to send message, return status=-1

FATAL: all hosts have already failed -- aborting


I've tried v2 (with v2 room tokens), v1, etc... but I can't get the damn thing to post a message.  What stupidly simple thing am I missing here?

Thanks!

Markus Ellers

unread,
Nov 23, 2015, 2:40:50 PM11/23/15
to Ansible Project
I would recommend looking at the stdout and stderr of the task. register a variable and put a debug for that variable after your task.

Igor Khomyakov

unread,
Nov 25, 2015, 8:52:15 AM11/25/15
to ansible...@googlegroups.com
Hi,

I'm afraid hipchat module is not very well tested with private
hipchat servers. There is a chance that we've missed something here. I
committed some changed to the module in regard of API V2 support so I
would be happy to help you. Please drop me a line off the list. I hope
I will be able to help you.

-- Best, Igor
> --
> 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-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/ddfb9e37-cb6f-4cb1-ad39-054a04394351%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages