I was hunting down the cause to an error message I received when adding a user to some groups.
- name: users | create app remote user user: name: "{{ app_remote_user }}" groups: adm, wheel createhome: yes
The error message was:
msg: Group wheel does not exist
This error message was not true in the sense that the target system definitely had a wheel group, but I noticed the extra space in the error message, so the fix was:
- name: users | create app remote user user: name: "{{ app_remote_user }}" groups: adm,wheel createhome: yes
My question: Is this a bug in Ansible’s interpretation of the groups parameter value?