Yum module doesn't provide a large verbose output as apt

258 views
Skip to first unread message

alessandro mazzoli

unread,
Jul 28, 2015, 4:37:20 AM7/28/15
to Ansible Project
Hi,

i'm also using Ansible for rolling updates( dry-run first) on Ubuntu/CentOS but i recognized that with the same cli command, Apt provide a larger verbose output than Yum:

ansible myhost -i inventories/production/prod --check -vvvv -m yum -a "name=* state=latest update_cache=yes"




In output this command gives me only SSH output + success state







Instead executing:

ansible myhost_ubuntu -i inventories/production/prod --check -vvvv -m apt -a "upgrade=yes update_cache=yes"



In output this command gives me SSH output + all info about packages that will be installed/removed











i tried also to set up "error_legel" on yum.conf, do you have any ideas?

Thank you advance, A.M

Toshio Kuratomi

unread,
Jul 28, 2015, 11:51:38 AM7/28/15
to ansible...@googlegroups.com
there's an active PR being worked on to address this: https://github.com/ansible/ansible-modules-core/pull/1657

I think queridiculo was working on reformatting the output to be more friendly to use in conditionals. 

--
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/a7d441e1-8bc9-43c1-a38a-e0ac91fddc24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages