Skip to content

Commit 0e63772

Browse files
editing tomcat default conf file
editing tomcat default conf file for changing the default port
1 parent f34d8a1 commit 0e63772

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tomcat_port_modification

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
3+
- name: Editing files
4+
hosts: localhost
5+
gather_facts: false
6+
connection: local
7+
tasks:
8+
- name: Editing file using ansible lineinfile module
9+
lineinfile:
10+
path: /etc/tomcat/server.xml
11+
regexp: '<Connector port="8080" protocol="HTTP/1.1"'
12+
line: '<Connector port="9090" protocol="HTTP/1.1"'
13+

0 commit comments

Comments
 (0)