On Tue Oct 31 2017 12:45:54 GMT-0700 (PDT) John Harmon 
<[email protected]> wrote:
> msg":"","rc":0,"results":
> ["@Console internet tools is not installed",
> "@General Purpose Desktop is not installed",
> "@Graphical Administration Tools is not installed",
> "@Graphics Creation Tools is not installed",
> "@Internet Browser is not installed",
> "@KDE Desktop is not installed",
> "@Legacy X Window System compatibility is not installed",
> "@Remote Desktop Clients is not installed",
> "@TeX support is not installed",
> "@Technical Writing is not installed",
> "@X Window System is not installed",
> "@Desktop is not installed",
> "@Dial-up Networking Support is not installed",
> "@Remote Desktop Clients is not installed",
> "Loaded plugins: security\nSetting up Remove Process\nNo Packages 
> marked for removal\n"]}

It looks to me like that's the clue: are any of the groups in 
'with_items' installed?

So although Ansible command completed successfully the yum return code 
is 1 which accounts for a failure:

   [root@leel ~]# dnf remove "@x" ; echo $?
   Warning: Group 'x' is not installed.
   Error: No groups marked for removal.
   1
 
Does that make sense?

-Steve

-- 
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/aa282011-d78f-4533-a5f1-b4a332b2a210%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to