summaryrefslogtreecommitdiff
path: root/roles/core/sshd/base/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/core/sshd/base/tasks/main.yml')
-rw-r--r--roles/core/sshd/base/tasks/main.yml4
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