# Using XML module to insert new line

**URL:** <https://forum.ansible.com/t/using-xml-module-to-insert-new-line/38481>\
**Category:** Ansible Project\
**Created:** [September 29, 2023, 8:11pm UTC](https://forum.ansible.com/t/using-xml-module-to-insert-new-line/38481 "2023-09-29T20:11:54Z")\
**Posts on this page:** 1\
**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:** [September 29, 2023, 8:11pm UTC](https://forum.ansible.com/t/using-xml-module-to-insert-new-line/38481/1 "2023-09-29T20:11:54Z")

</div>

Hi folks

I some help , I have xml as following structure

login.url /login.action?os\_destination=${originalurl}&permissionViolation=true link.login.url /login.action cookie.encoding cNf login.cookie.key seraph.confluence login.submit.url /dologin.action authentication.type os\_authType invalidate.session.on.login true invalidate.session.exclude.list

I need to insert the following lines inside

logout.url http://google.com

I tried the following but

- name: Test 1  
community.general.xml:  
path: config.xml  
xpath: /security-config/parameters/init-param  
add\_children:
- init-param:  
param-name: logout.url  
param-value: [http://google.com](http://google.com)

the lines add in bottom of file like :

invalidate.session.exclude.list
