Re: [ansible-project] yum module: removing groups failing

2017-11-21 Thread John Harmon
Well, the last failure is due to using dnf on this box, which doesn't 
exist... that makes sense.   I tried this same yml on a rhel6 box and it 
worked fine it must be something specific to OEL

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/78a538ff-bf45-4b30-98c4-26f07f9230a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] yum module: removing groups failing

2017-11-21 Thread John Harmon
Anyone else?   This is still an issue.

TASK [Remove GUI from servers] 
***
failed: [ansible-oel6] (item=[u'@Console internet tools', u'@General 
Purpose Desktop', u'@Graphical Administration Tools', u'@Graphics Creation 
Tools', u'@Internet Browser', u'@KDE Desktop', u'@Legacy X Window System 
compatibility', u'@Remote Desktop Clients', u'@TeX support', u'@Technical 
Writing', u'@X Window System', u'@Desktop', u'@Desktop Debugging and 
Performance Tools', u'@Dial-up Networking Support', u'@Remote Desktop 
Clients']) => {"changed": false, "cmd": "dnf install -y python2-dnf", 
"failed": true, "item": ["@Console internet tools", "@General Purpose 
Desktop", "@Graphical Administration Tools", "@Graphics Creation Tools", 
"@Internet 
Browser", "@KDE Desktop", "@Legacy X Window System compatibility", "@Remote 
Desktop Clients", "@TeX support", "@Technical Writing", "@X Window System", 
"@Desktop", "@Desktop Debugging and Performance Tools", "@Dial-up 
Networking Support", "@Remote Desktop Clients"], "msg": "[Errno 2] No such 
file or directory", "rc": 2}
...ignoring



-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/58763d9e-f73a-4323-be41-0a67f7569f03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] yum module: removing groups failing

2017-11-03 Thread John Harmon
dnf. interesting.  I learned something new.

These boxes do not have dnf on then, nor do the epel-repos tied to them.  
They are OEL 6.5 boxes for the most part.  Some are OEL 6.9

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9e09391c-8120-43e1-b3e0-19806a4fc417%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] yum module: removing groups failing

2017-11-03 Thread John Harmon
TASK [Remove GUI from servers] 
***
failed: [ansible-oel6] (item=[u'@Console internet tools', u'@General 
Purpose Desktop', u'@Graphical Administration Tools', u'@Graphics Creation 
Tools', u'@Internet Browser', u'@KDE Desktop', u'@Legacy X Window System 
compatibility', u'@Remote Desktop Clients', u'@TeX support', u'@Technical 
Writing', u'@X Window System', u'@Desktop', u'@Desktop Debugging and 
Performance Tools', u'@Dial-up Networking Support', u'@Remote Desktop 
Clients']) => {"changed": false, "cmd": "dnf install -y python2-dnf", 
"failed": true, "item": ["@Console internet tools", "@General Purpose 
Desktop", "@Graphical Administration Tools", "@Graphics Creation Tools", 
"@Internet 
Browser", "@KDE Desktop", "@Legacy X Window System compatibility", "@Remote 
Desktop Clients", "@TeX support", "@Technical Writing", "@X Window System", 
"@Desktop", "@Desktop Debugging and Performance Tools", "@Dial-up 
Networking Support", "@Remote Desktop Clients"], "msg": "[Errno 2] No such 
file or directory", "rc": 2}



On Friday, November 3, 2017 at 12:44:35 PM UTC-6, Steve McKuhr wrote:
>
> On Fri Nov 03 2017 11:04:46 GMT-0700 (PDT) John Harmon 
> > wrote: 
> > Is this a bug perhaps?  If I change state to present, it will install 
> > the packages just fine.  If I changed the state to absent or removed, 
> > it fails.  If I leave it at absent, and change my first with_item to 
> > include {} within the quotes, then some of the packages are removed 
> > and some fail. 
>
> Same results with the DNF plugin? 
>
> -- 
> Viorel 
>

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/601cf604-78b6-4387-8dbc-cb6251f3d297%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] yum module: removing groups failing

2017-11-03 Thread John Harmon
TASK [Remove GUI from servers] 
***
failed: [ansible-oel6] (item=[u'@Console internet tools', u'@General 
Purpose Desktop', u'@Graphical Administration Tools', u'@Graphics Creation 
Tools', u'@Internet Browser', u'@KDE Desktop', u'@Legacy X Window System 
compatibility', u'@Remote Desktop Clients', u'@TeX support', u'@Technical 
Writing', u'@X Window System', u'@Desktop', u'@Desktop Debugging and 
Performance Tools', u'@Dial-up Networking Support', u'@Remote Desktop 
Clients']) => {"changed": false, "cmd": "dnf install -y python2-dnf", 
"failed": true, "item": ["@Console internet tools", "@General Purpose 
Desktop", "@Graphical Administration Tools", "@Graphics Creation Tools", 
"@Internet Browser", "@KDE Desktop", "@Legacy X Window System 
compatibility", "@Remote Desktop Clients", "@TeX support", "@Technical 
Writing", "@X Window System", "@Desktop", "@Desktop Debugging and 
Performance Tools", "@Dial-up Networking Support", "@Remote Desktop 
Clients"], "msg": "[Errno 2] No such file or directory", "rc": 2}


On Friday, November 3, 2017 at 12:44:35 PM UTC-6, Steve McKuhr wrote:
>
> On Fri Nov 03 2017 11:04:46 GMT-0700 (PDT) John Harmon 
> > wrote: 
> > Is this a bug perhaps?  If I change state to present, it will install 
> > the packages just fine.  If I changed the state to absent or removed, 
> > it fails.  If I leave it at absent, and change my first with_item to 
> > include {} within the quotes, then some of the packages are removed 
> > and some fail. 
>
> Same results with the DNF plugin? 
>
> -- 
> Viorel 
>

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0bcc0462-2f13-492a-af5a-bca173dc0aa9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] yum module: removing groups failing

2017-11-03 Thread Steve McKuhr
On Fri Nov 03 2017 11:04:46 GMT-0700 (PDT) John Harmon 
 wrote:
> Is this a bug perhaps?  If I change state to present, it will install 
> the packages just fine.  If I changed the state to absent or removed, 
> it fails.  If I leave it at absent, and change my first with_item to 
> include {} within the quotes, then some of the packages are removed 
> and some fail.

Same results with the DNF plugin?

-- 
Viorel

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a5f04eff-a4e0-5623-ea79-182101531941%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] yum module: removing groups failing

2017-11-03 Thread John Harmon
Is this a bug perhaps?  If I change state to present, it will install the 
packages just fine.  If I changed the state to absent or removed, it 
fails.  If I leave it at absent, and change my first with_item to include 
{} within the quotes, then some of the packages are removed and some fail.  
This is just weird.

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1ea5a4df-465d-4554-8faf-9a54eeead8e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] yum module: removing groups failing

2017-11-03 Thread John Harmon
All of the groups are installed on the managed server.  If I run yum 
groupremove  on the server it removes fine.  It is just within 
ansible that it is failing.  Ansible has you reference groups with 
@groupname in the yum module.  These aren't environment groups (referenced 
with @^groupname)

>
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0a0657e2-e874-47ae-a94a-e165d9393463%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] yum module: removing groups failing

2017-11-02 Thread Steve McKuhr
On Tue Oct 31 2017 12:45:54 GMT-0700 (PDT) John Harmon 
 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
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.