added support for multiple user overrides
This commit is contained in:
parent
c4936b3f6f
commit
0df06810fc
2 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
sshuser: {}
|
|
||||||
rootpath: ''
|
rootpath: ''
|
||||||
|
|
||||||
ssh:
|
ssh:
|
||||||
config_override:
|
config_override:
|
||||||
AuthorizedKeysFile: ".ssh/authorized_keys"
|
AuthorizedKeysFile: ".ssh/authorized_keys"
|
||||||
|
user: {}
|
||||||
|
|
|
||||||
|
|
@ -57,9 +57,9 @@ MaxAuthTries 10
|
||||||
|
|
||||||
# add special rules for users defined in host variables
|
# add special rules for users defined in host variables
|
||||||
|
|
||||||
{% for i in sshuser %}
|
{% for i in ssh.user %}
|
||||||
Match User {{ i }}
|
Match User {{ i }}
|
||||||
{% for j in sshuser[i]|d({}) %}
|
{% for j in ssh.user[i]|d({}) %}
|
||||||
{{ j }} {{ sshuser[i][j] }}
|
{{ j }} {{ ssh.user[i][j] }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue