users: manage ssh authorised keys

Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
Joe Groocock 2020-07-19 14:18:10 +01:00
parent 6d843a0b65
commit 05d7cef80c
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -16,4 +16,9 @@
{%- if user.shell is defined %} {%- if user.shell is defined %}
- shell: {{ user.shell }} - shell: {{ user.shell }}
{%- endif %} {%- endif %}
ssh_auth.manage:
- user: {{ name }}
{%- if user['ssh-keys'] is defined %}
- ssh_keys: {{ user['ssh-keys']|json }}
{%- endif %}
{%- endfor %} {%- endfor %}