"egrep" is deprecated, use "grep -E"
This commit is contained in:
parent
3d22cbf927
commit
13e1c0486b
|
@ -44,7 +44,7 @@
|
|||
|
||||
# we must double-escape caracters, because python
|
||||
- name: verify AllowUsers directive
|
||||
shell: "egrep '^AllowUsers' /etc/ssh/sshd_config"
|
||||
shell: "grep -E '^AllowUsers' /etc/ssh/sshd_config"
|
||||
changed_when: False
|
||||
failed_when: False
|
||||
register: grep_allowusers_ssh
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
# we must double-escape caracters, because python
|
||||
- name: verify AllowUsers directive
|
||||
shell: "egrep '^AllowUsers' /etc/ssh/sshd_config"
|
||||
shell: "grep -E '^AllowUsers' /etc/ssh/sshd_config"
|
||||
changed_when: False
|
||||
failed_when: False
|
||||
register: grep_allowusers_ssh
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
- mailgraph
|
||||
|
||||
- name: check if main.cf is default
|
||||
shell: egrep -v "^(myhostname|mydestination|mailbox_command)" /etc/postfix/main.cf | md5sum -
|
||||
shell: grep -v -E "^(myhostname|mydestination|mailbox_command)" /etc/postfix/main.cf | md5sum -
|
||||
changed_when: False
|
||||
check_mode: no
|
||||
register: default_main_cf
|
||||
|
|
Loading…
Reference in New Issue