From cf430f286aa9e1acfd08e4d7236c601a625e54f7 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Fri, 3 May 2024 13:24:16 +0200 Subject: [PATCH] evolinux-base: use long version of grep -r instead of grep -R --- evolinux-base/tasks/ssh.included-files.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evolinux-base/tasks/ssh.included-files.yml b/evolinux-base/tasks/ssh.included-files.yml index 7fe76346..0f90a01f 100644 --- a/evolinux-base/tasks/ssh.included-files.yml +++ b/evolinux-base/tasks/ssh.included-files.yml @@ -28,7 +28,7 @@ - name: verify AllowUsers directive ansible.builtin.command: - cmd: "grep --extended-regexp --dereference-recursive --files-with-matches '^AllowUsers' /etc/ssh/sshd_config /etc/ssh/sshd_config.d" + cmd: "grep --extended-regexp --recursive --files-with-matches '^AllowUsers' /etc/ssh/sshd_config /etc/ssh/sshd_config.d" failed_when: False changed_when: False register: grep_allowusers_ssh @@ -36,7 +36,7 @@ - name: verify AllowGroups directive ansible.builtin.command: - cmd: "grep --extended-regexp --dereference-recursive --files-with-matches '^AllowGroups' /etc/ssh/sshd_config /etc/ssh/sshd_config.d" + cmd: "grep --extended-regexp --recursive --files-with-matches '^AllowGroups' /etc/ssh/sshd_config /etc/ssh/sshd_config.d" failed_when: False changed_when: False register: grep_allowgroups_ssh