updated users state
This commit is contained in:
parent
bc9f791639
commit
07b1e80101
@ -1,14 +1,14 @@
|
|||||||
---
|
---
|
||||||
{%- from "users/map.jinja" import users with context -%}
|
{%- from "users/map.jinja" import users with context -%}
|
||||||
|
|
||||||
{%- for username,user in users.items() %}
|
{%- for username, user in users.items() %}
|
||||||
{%- if user.sshkeys is defined %}
|
{%- if user.sshkeys is defined %}
|
||||||
{%- for key in user.sshkeys %}
|
{%- for name, sshkey in user.sshkeys.items() %}
|
||||||
ssh-key-{{ username }}-{{ key.name }}:
|
ssh-key-{{ username }}-{{ name }}:
|
||||||
ssh_auth.{{ key.state }}:
|
ssh_auth.{{ sshkey.state }}:
|
||||||
- user: {{ username }}
|
- user: {{ username }}
|
||||||
- names:
|
- names:
|
||||||
- {{ key.value }}
|
- {{ sshkey.value }}
|
||||||
- require:
|
- require:
|
||||||
- user: user-{{ username }}
|
- user: user-{{ username }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user