Adding a user to an additional group using ansible ...
https://serverfault.com/questions/542910If {{ user }} already exists in the system, you should use the following to just add it to a group: - name: adding existing user '{{ user }}' to group sudo user: name: '{{ user }}' groups: sudo append: yes To add it to a set of groups, you can use a comma separated list, for example groups: admin,sudo.. Just beware that if you omit append: yes, your user will be removed from all other …