aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/sshd
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-23 21:35:30 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-23 21:40:18 +0200
commit9062ea04823b0464280d0a6dcd2e67003ce0d2e1 (patch)
treef17ee1c3176a64ecda4442f7a08fc406b64a9e51 /roles/sshd
parentv0.0.19 (diff)
downloadinfra-ansible-9062ea04823b0464280d0a6dcd2e67003ce0d2e1.tar.gz
infra-ansible-9062ea04823b0464280d0a6dcd2e67003ce0d2e1.zip
properly prefix things
Diffstat (limited to 'roles/sshd')
-rw-r--r--roles/sshd/defaults/main.yml2
-rw-r--r--roles/sshd/templates/sshd_config.j22
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/sshd/defaults/main.yml b/roles/sshd/defaults/main.yml
index 8d56863..aa0dcda 100644
--- a/roles/sshd/defaults/main.yml
+++ b/roles/sshd/defaults/main.yml
@@ -1 +1 @@
-ssh_allowed_groups: []
+sshd_allowed_groups: []
diff --git a/roles/sshd/templates/sshd_config.j2 b/roles/sshd/templates/sshd_config.j2
index abcf0d7..1ea1c12 100644
--- a/roles/sshd/templates/sshd_config.j2
+++ b/roles/sshd/templates/sshd_config.j2
@@ -5,7 +5,7 @@
{% set ssh_port = hostvars[inventory_hostname].ansible_port %}
{% set ssh_user = hostvars[inventory_hostname].ansible_user %}
-{% set groups = [ssh_user] + ssh_allowed_groups %}
+{% set groups = [ssh_user] + sshd_allowed_groups %}
{% set groups = groups | sort | unique %}
Port {{ ssh_port }}