From a5cb54461deb7d53e9adf44b95190650d1ea082e Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Wed, 23 Jul 2025 15:16:43 -0400 Subject: [PATCH] Altered variable name due to change in name during assignment or declaration in bootstrap role's vars/defaults --- roles/bootstrap/tasks/auth@ssh.yml | 4 ++-- roles/bootstrap/tasks/denyroot@ssh.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/bootstrap/tasks/auth@ssh.yml b/roles/bootstrap/tasks/auth@ssh.yml index 3a79c82..0f92f4c 100644 --- a/roles/bootstrap/tasks/auth@ssh.yml +++ b/roles/bootstrap/tasks/auth@ssh.yml @@ -12,8 +12,8 @@ copy: src: sshd/nopass.conf dest: /etc/ssh/sshd_config.d/nopass.conf - owner: "{{ root_acct }}" - group: "{{ root_acct }}" + owner: "{{ primary_root_acct }}" + group: "{{ primary_root_acct }}" force: yes register: ssh_passauth_disabled tags: ['default', 'disable_ssh_passauth'] \ No newline at end of file diff --git a/roles/bootstrap/tasks/denyroot@ssh.yml b/roles/bootstrap/tasks/denyroot@ssh.yml index 35c988d..24d57bb 100644 --- a/roles/bootstrap/tasks/denyroot@ssh.yml +++ b/roles/bootstrap/tasks/denyroot@ssh.yml @@ -3,8 +3,8 @@ copy: src: sshd/denyroot.conf dest: /etc/ssh/sshd_config.d/denyroot.conf - owner: "{{ root_acct }}" - group: "{{ root_acct }}" + owner: "{{ primary_root_acct }}" + group: "{{ primary_root_acct }}" force: yes register: sshroot_disabled tags: ['default', 'deny_sshroot'] \ No newline at end of file