evolinux-users: use command instead of shell when possible

This commit is contained in:
Jérémy Lecour 2018-04-15 16:59:24 +02:00
parent 2027420877
commit f065310ca6
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
# this check must be repeated for each user
# even if it's been done before
- name: verify AllowGroups directive
shell: "grep -E '^AllowGroups' /etc/ssh/sshd_config"
command: "grep -E '^AllowGroups' /etc/ssh/sshd_config"
changed_when: False
failed_when: False
check_mode: no

View File

@ -3,7 +3,7 @@
# this check must be repeated for each user
# even if it's been done before
- name: verify AllowUsers directive
shell: "grep -E '^AllowUsers' /etc/ssh/sshd_config"
command: "grep -E '^AllowUsers' /etc/ssh/sshd_config"
changed_when: False
failed_when: False
check_mode: no
@ -28,7 +28,7 @@
when: grep_allowusers_ssh.rc == 0
- name: "verify Match User directive"
command: "grep 'Match User' /etc/ssh/sshd_config"
command: "grep -E '^Match User' /etc/ssh/sshd_config"
changed_when: False
failed_when: False
check_mode: no