- name: Insert test line lineinfile: path: /tmp/file regexp: '^Listen ' insertafter: '^#Listen ' state: 'present' line: 'Listen 8080'