fix role and ansible-lint errors

This commit is contained in:
Sergey Malyuk
2025-12-18 11:54:32 +03:00
parent 2c4b30314b
commit 14bcc89e5d
7 changed files with 25 additions and 14 deletions

View File

@@ -18,7 +18,7 @@
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config
regexp: '^#?UsePAM'
line: "UsePAM {{ disable_pam | ternary('no', 'yes') }}"
line: "UsePAM {{ sshd_disable_pam | ternary('no', 'yes') }}"
validate: sshd -f %s -t
- name: "Restrictions | ensure the SSHD config is restricted to the root user"