win_lineinfile:
dest: c:\Windows\System32\inetsrv\config\applicationHost.config
regexp: '^(.*)<urlCompression \/>$'
line: '\1<urlCompression doStaticCompression="true" doDynamicCompression="true" />'
state: present
backrefs: yes
backup: yes <urlCompression />\1<urlCompression doStaticCompression="true" doDynamicCompression="true" />
Brussels · New York · stylelabs.com
Join our team and help us create and innovate ⓜ Marketing Content Hub, one of the most user-friendly content marketing tools on the market.
Belgium: Senior Web Developer - Senior Dotnet Developer - Dotnet Developer - Project Manager - Solution Architect - Business Analyst
United States: Senior Dotnet Developer
- name: replace a line with backrefs included in the line
win_lineinfile: dest={{win_output_dir}}/test.txt state=present line="New $1 created with the backref" backrefs=yes regexp="^This is (line 4)$"