You've already forked ansible-role-unix-users
fix!: rename environments to envs
This commit is contained in:
@@ -103,7 +103,7 @@ unix_users:
|
||||
authorized_keys:
|
||||
- filename: claire@claire-pc.pub
|
||||
- command: /usr/local/bin/upload-file.sh
|
||||
environments:
|
||||
envs:
|
||||
- key: SSH_KEY_NAME
|
||||
value: bob@bob-pc
|
||||
filename: bob@bob-pc.pub
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
{% if authorized_key.command is defined and authorized_key.command | length > 0 %}
|
||||
{% set _args = _args + [ "command=\"" + authorized_key.command + "\"" ] %}
|
||||
{% endif %}
|
||||
{% if authorized_key.environments is defined %}
|
||||
{% if authorized_key.envs is defined %}
|
||||
{% set ns = namespace(envs=[]) %}
|
||||
{% for environment in authorized_key.environments %}
|
||||
{% for environment in authorized_key.envs %}
|
||||
{% if environment.key is defined and environment.key | length > 0 and
|
||||
environment.value is defined and environment.value | length > 0
|
||||
%}
|
||||
|
||||
Reference in New Issue
Block a user