--- - name: clean hosts file become: true blockinfile: path: /etc/hosts marker: "# {mark} ANSIBLE MANAGED BLOCK" content: "" tags: clean_hosts