sync/roles/test/tasks/main.yml

8 lines
156 B
YAML

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