- name: Create text block in a file ansible.builtin.blockinfile: path: /etc/ssh/sshd_config marker: "# {mark} ANSIBLE monuser MANAGED BLOCK" block: | Match Group monuser PasswordAuthentication no PubKeyAuthentication yes