Created
March 2, 2020 12:33
-
-
Save daBONDi/d3fb2c059f62f1b74c021b1f316a48ef to your computer and use it in GitHub Desktop.
Ansible - win_lineinfile - Comment line in XML - Disable File Tomcat AJP Port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: "Ensure Tomcat AJP Connector on Port 8009 is Disabled" | |
win_lineinfile: | |
path: "c:/temp/server.xml" | |
regex: '^(\s*)(<Connector port="8009" protocol="AJP\/1\.3" redirectPort="8443" \/>)' | |
backrefs: true | |
line: '$1<!-- $2 -->' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment