users: manage ssh authorised keys
Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
parent
6d843a0b65
commit
05d7cef80c
@ -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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user