test(roles): accept both prohibit-password names and declare pihole on 26.04
sshd -T prints prohibit-password as without-password on OpenSSH 9 and as prohibit-password on OpenSSH 10 (Ubuntu 26.04). pihole shipped in 2.1.0 on noble only, so gaining resolute is a minor change. The docker and gitea exception now points at the image fix, #376. Assisted-by: Claude Code
This commit is contained in:
1 parent
df06260b27
commit
1f27f02f13
3 files changed
+7
-5
No files matched your search
@@ -237,8 +237,10 @@
|
||||
- name: Root logs in with keys only, passwords stay off
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
# sshd -T prints the first alias in its table for prohibit-password: without-password.
|
||||
- sshd_verify_pve_effective.stdout_lines is contains('permitrootlogin without-password')
|
||||
# sshd -T prints prohibit-password under one of its names, by OpenSSH version.
|
||||
- >-
|
||||
'permitrootlogin prohibit-password' in sshd_verify_pve_effective.stdout_lines
|
||||
or 'permitrootlogin without-password' in sshd_verify_pve_effective.stdout_lines
|
||||
- sshd_verify_pve_effective.stdout_lines is contains('passwordauthentication no')
|
||||
- sshd_verify_pve_effective.stdout_lines is contains('pubkeyauthentication yes')
|
||||
quiet: true
|
||||
|
||||
Reference in new issue
Block a user