From e70ab6d039ac7b50d20df4b52f0261ce28a82633 Mon Sep 17 00:00:00 2001 From: Alexis Ben Miloud--Josselin Date: Tue, 20 Jun 2023 10:57:55 +0200 Subject: [PATCH] evolinux-users: Fix tests order --- evolinux-users/tasks/ssh_allowgroups.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evolinux-users/tasks/ssh_allowgroups.yml b/evolinux-users/tasks/ssh_allowgroups.yml index 6972b82b..198a7222 100644 --- a/evolinux-users/tasks/ssh_allowgroups.yml +++ b/evolinux-users/tasks/ssh_allowgroups.yml @@ -20,8 +20,8 @@ validate: '/usr/sbin/sshd -t -f %s' notify: reload sshd when: - - grep_allowgroups_ssh.rc != 0 - ansible_distribution_major_version is version('11', '<=') + - grep_allowgroups_ssh.rc != 0 - name: "Append '{{ evolinux_ssh_group }}' to AllowGroups sshd directive" ansible.builtin.replace: @@ -31,8 +31,8 @@ validate: '/usr/sbin/sshd -t -f %s' notify: reload sshd when: - - grep_allowgroups_ssh.rc == 0 - ansible_distribution_major_version is version('11', '<=') + - grep_allowgroups_ssh.rc == 0 - name: "Add AllowGroups sshd directive with '{{ evolinux_ssh_group }}'" ansible.builtin.lineinfile: