Bug in gem module?

15 views
Skip to first unread message

michae...@outlook.com

unread,
Aug 13, 2016, 4:20:38 AM8/13/16
to Ansible Project
Hi everyone,

I'm trying to install some sensu gems using the below - i don't get any errors but I don't get any success/failure messages either and the gems are not installed, what am I missing? Node is running CentOS 6.7 Final. Ansible v2.1


Thanks,

Michael

Dick Davies

unread,
Aug 13, 2016, 5:55:14 AM8/13/16
to ansible list
Are you sure the role is running? Try running with -vvvv for starters.


It might help to post a full role, this

task path: /root/ansible/ansible-iom/roles/sensu-check/tasks/client.yml:18

doesn't match up with the other 2 snippets.
> --
> 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/d9baac7c-0449-44a5-9f7d-d0785020ba2d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

michae...@outlook.com

unread,
Aug 13, 2016, 6:24:15 AM8/13/16
to Ansible Project, di...@hellooperator.net
Hi,

i'm sure the role is running, i've shown the output after running ansible-playbook:

[root@mgr-004-iom():ansible-iom] ansible-playbook site.yml --tags gems

PLAY [lbservers] ***************************************************************

TASK [setup] *******************************************************************
ok: [nlb-002-iom]
ok: [nlb-001-iom]

TASK [common : include] ********************************************************
included: /root/ansible/ansible-iom/roles/common/tasks/selinux.yml for nlb-002-iom, nlb-001-iom

TASK [common : include] ********************************************************
included: /root/ansible/ansible-iom/roles/common/tasks/yum.yml for nlb-002-iom, nlb-001-iom

TASK [network : include] *******************************************************
included: /root/ansible/ansible-iom/roles/network/tasks/network.yml for nlb-002-iom, nlb-001-iom

TASK [network : include] *******************************************************
included: /root/ansible/ansible-iom/roles/network/tasks/etchosts.yml for nlb-002-iom, nlb-001-iom

TASK [sensu-check : include] ***************************************************
included: /root/ansible/ansible-iom/roles/sensu-check/tasks/common.yml for nlb-002-iom, nlb-001-iom

TASK [sensu-check : include] ***************************************************
included: /root/ansible/ansible-iom/roles/sensu-check/tasks/client.yml for nlb-002-iom, nlb-001-iom

TASK [sensu-check : SENSU | Install required gems] *****************************

TASK [nginx : include] *********************************************************
included: /root/ansible/ansible-iom/roles/nginx/tasks/nginx.yml for nlb-002-iom, nlb-001-iom

TASK [nginx : include] *********************************************************
included: /root/ansible/ansible-iom/roles/nginx/tasks/vhosts.yml for nlb-002-iom, nlb-001-iom

PLAY RECAP *********************************************************************
nlb-001-iom                : ok=9    changed=0    unreachable=0    failed=0
nlb-002-iom                : ok=9    changed=0    unreachable=0    failed=0


If you look at the task for installing gems, there is no output..

Running the task with -vvvv doesn't show anything extra:



Any ideas?

Marcus Franke

unread,
Aug 15, 2016, 8:29:24 AM8/15/16
to ansible...@googlegroups.com, di...@hellooperator.net
On Sat, Aug 13, 2016 at 03:24:15AM -0700, michae...@outlook.com wrote:
> Hi,
>
> TASK [sensu-check : SENSU | Install required gems]
> *****************************
>
> If you look at the task for installing gems, there is no output..
>
> Running the task with -vvvv doesn't show anything extra:
>
> http://pastebin.com/CjEqU0nN
>
>
> Any ideas?

Have you checked for the executable: "{{ sensu_embedded_path }}/gem"?
Maybe this gem version dies silently and thus ansible does not recognize the
failure condition? Can you call the gem executable in a shell and install a
gem this way? Even as the user ansible is running under?


Btw. what about the vmstat gem, isn't the plugin called sensu-plugins-vmstats?


Regards,
Marcus

Reply all
Reply to author
Forward
0 new messages