I want to fix broken sendfile support in VBox, so I need to put line in . I want to do that with ansible playbook. Specific task look like:
- name: fix broken sendfile support in VBox
lineinfile:
dest: /etc/apache2/sites-enabled/000-default
regexp: '^ServerAdmin'
insertafter: 'ServerAdmin'
line: 'EnableSendfile off'
state: present
Problem is hapening when I need to call playbook again, and this task duplicate line . How to fix that.