Thanks, I thought that might be it. I used the command module instead with all the same parameters except --quiet and --xmlout and it's working fine. Seems pointless that it suppresses all the output.
On Thursday, June 13, 2019 at 5:17:19 PM UTC-6, Sebastian Meyer wrote: > > Hi, > > On 13.06.19 23:50, Bobby Hood wrote: > > "cmd": [ > > "/usr/bin/zypper", > > "--quiet", > > the ansible zypper module calls zypper with --quiet, as you can check on > the commandline that leads to zypper not writing to stdout, if there's > nothing to do: > > # zypper update > Loading repository data... > Reading installed packages... > > Nothing to do. > # > # zypper --quiet update > # > > As this is hardcoded in the module, there's no easy way around this. It > should give you output once there are packages to update: > > # zypper --quiet --non-interactive up > > The following 6 NEW packages are going to be installed: > dbus-1 kbd kmod pinentry pkg-config udev > > The following 56 packages are going to be upgraded: > aaa_base acl bash blog ca-certificates-mozilla cpio file [...] > > The following product is going to be reinstalled: > "openSUSE Leap 42.3" > > 56 packages to upgrade, 6 new. > Overall download size: 27.8 MiB. Already cached: 0 B. After the operation, > additional 12.4 MiB will be used. > Continue? [y/n/...? shows all options] (y): y > > Regards > -- > Sebastian Meyer > Linux Consultant & Trainer > Mail: [email protected] <javascript:> > > B1 Systems GmbH > Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de > GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 > -- This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential, privileged, and/or proprietary information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). -- 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/06d0d78d-03e3-4319-a4ef-32b01e77f7f1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
