users: manage ssh authorised keys

Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
Joe Groocock 2020-07-19 15:08:02 +01:00
parent 6d843a0b65
commit f8fa65f715
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

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