In short, can I combine these two tasks into one? Some servers have one
group, some have another. None of the servers should have both:
- name: Ensure GID is correct for gomer group
group:
name: gomer
gid: 2001
when: getent_group | lower | search("gomer")
- name: Ensure GID is correct for pyle group
group:
name: pyle
gid: 2000
when: getent_group | lower | search("pyle")
--
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/36ac70ed-7c00-4693-bdd2-273d8c008e71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.