# add Connector to server.xml file

**URL:** <https://forum.ansible.com/t/add-connector-to-server-xml-file/38005>\
**Category:** Ansible Project\
**Created:** [May 18, 2023, 10:02am UTC](https://forum.ansible.com/t/add-connector-to-server-xml-file/38005 "2023-05-18T10:02:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shloco](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@shloco](https://forum.ansible.com/u/shloco)\
**Post date:** [May 18, 2023, 10:02am UTC](https://forum.ansible.com/t/add-connector-to-server-xml-file/38005/1 "2023-05-18T10:02:09Z")

</div>

Hi Team,

I’m trying to add additional Connector to server.xml file, I try to use XML module so far without no luck. any ideas ?

community.general.xml:  
path: server.xml  
xpath: /Server/Service  
add\_children:

- Connector:  
port: ‘8090’  
relaxedPathChars: “|”  
.  
.  
.

server.xml

---

<div class="post-metadata">

**Author:** ![atul\_mohan](https://avatars.discourse-cdn.com/v4/letter/a/f04885/32.png) [@atul\_mohan](https://forum.ansible.com/u/atul_mohan)\
**Post date:** [August 20, 2023, 10:03pm UTC](https://forum.ansible.com/t/add-connector-to-server-xml-file/38005/2 "2023-08-20T22:03:48Z")

</div>

- name: Add Connector to server.xml  
community.general.xml:  
path: /path/to/server.xml  
xpath: /Server/Service  
add\_children:
- Connector:  
port: ‘8090’  
relaxedPathChars: “|”  
relaxedQueryChars: “|{}^\`"\<\>”  
maxThreads: ‘250’  
minSpareThreads: ‘50’
