From 4a0d3a49659e57efce782a29556549ff288149fe Mon Sep 17 00:00:00 2001 From: Alexis Ben Miloud--Josselin Date: Fri, 21 Jul 2023 12:58:08 +0200 Subject: [PATCH] Fix permitrootlogin condition --- evolinux-users/tasks/ssh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evolinux-users/tasks/ssh.yml b/evolinux-users/tasks/ssh.yml index af889f71..ae1db373 100644 --- a/evolinux-users/tasks/ssh.yml +++ b/evolinux-users/tasks/ssh.yml @@ -92,6 +92,6 @@ when: - evolinux_root_disable_ssh | bool - ansible_distribution_major_version is version('12', '>=') - - grep_permitrootlogin_ssh.rc != 1 + - grep_permitrootlogin_ssh.rc == 1 - ansible.builtin.meta: flush_handlers