diff options
Diffstat (limited to 'roles/core/sshd/base/tasks')
-rw-r--r-- | roles/core/sshd/base/tasks/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/core/sshd/base/tasks/main.yml b/roles/core/sshd/base/tasks/main.yml index 87cd9a29..78c094d4 100644 --- a/roles/core/sshd/base/tasks/main.yml +++ b/roles/core/sshd/base/tasks/main.yml @@ -48,7 +48,7 @@ lineinfile: dest: /etc/ssh/sshd_config regexp: "^AllowUsers\\s" - line: "AllowUsers {{ ' '.join([ 'root' ] | union(sshd_allowusers_group) | union(sshd_allowusers_host) | union(sshd_jump_users | default({}) | list)) }}" + line: "AllowUsers {{ ' '.join([ 'root' ] | union(sshd_allowusers_group) | union(sshd_allowusers_host) | union(sshd_jump_users | default({}) | list) | sort) }}" insertbefore: '^### ansible core/sshd/base config barrier ###' notify: restart ssh @@ -72,7 +72,7 @@ lineinfile: dest: /etc/ssh/sshd_config regexp: "^AllowGroups\\s" - line: "AllowGroups {{ ' '.join(sshd_allowgroups_group | union(sshd_allowgroups_host)) }}" + line: "AllowGroups {{ ' '.join(sshd_allowgroups_group | union(sshd_allowgroups_host) | sort) }}" insertbefore: '^### ansible core/sshd/base config barrier ###' notify: restart ssh |