Use the primary group for the user when creating authorized_keystags/v0.45.0
file.managed: | file.managed: | ||||
- name: {{ home }}/.ssh/authorized_keys | - name: {{ home }}/.ssh/authorized_keys | ||||
- user: {{ name }} | - user: {{ name }} | ||||
- group: {{ name }} | |||||
- group: {{ user_group }} | |||||
- mode: 600 | - mode: 600 | ||||
{% if 'ssh_auth_file' in user %} | {% if 'ssh_auth_file' in user %} | ||||
- contents: | | - contents: | |