[ansible-project] Re: Exclude match from with_items

2019-01-16 Thread John Harmon
> > > I re-read you response Brian I should be able to append to my when > statement with an and statement or something similar. I will have to go > and test it out. > Wow, I totally missed that. That should do exactly what I want to. Thank you! -- You received this message because

[ansible-project] Re: Exclude match from with_items

2019-01-16 Thread John Harmon
On Wednesday, January 16, 2019 at 4:14:36 PM UTC-7, John Harmon wrote: > > I should clarify a little. I want to remove all groups except "Domain > Users" from the user specified. I am also already using a when statement: > tasks: > - name: "Disable non-vip user {{ user }}" > win_do

Re: [ansible-project] Re: Exclude match from with_items

2019-01-16 Thread Brian Coca
well, just reading teh docs on win_domain_user, seems you want` group_action: replace` -- -- Brian Coca -- 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

[ansible-project] Re: Exclude match from with_items

2019-01-16 Thread John Harmon
I should clarify a little. I want to remove all groups except "Domain Users" from the user specified. I am also already using a when statement: tasks: - name: "Disable non-vip user {{ user }}" win_domain_user: name: "{{ user }}" password: $1$SomeSalt$tNt/ObWy40s.iTT/t