Fix regexp bug
This commit is contained in:
parent
37af9bd7ed
commit
6a91dfcfe4
|
@ -2,7 +2,7 @@
|
|||
- name: Check SSH daemon configuration
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/ssh/sshd_config
|
||||
regexp: "[^#]{{ item.key }}.*"
|
||||
regexp: "^{{ item.key }}"
|
||||
line: "{{ item.key }} {{ item.value }}"
|
||||
state: present
|
||||
validate: "sshd -t -f %s"
|
||||
|
|
Loading…
Reference in New Issue