- hosts: '{{ variable_host | default("lab15_standard") }}' gather_facts: no become: yes tasks: - name: Remove tmp from included path lineinfile: path: /opt/matlab/R2020b/toolbox/local/pathdef.m state: absent regexp: '^.*(/tmp/Editor_mmcjz:).*$'