Hello Dick, Now this is the output.
<!-- The deferServletLoad attribute value can be changed to "false" to force all applications to load on startup, instead of when they are first accessed --> <webContainer deferServletLoad="false"/> <include location="conf/ldapUserRegistry.xml"/> <!--include location="conf/ldapUserRegistry.xml"/--> <include location="conf/application.xml"/> <executor coreThreads="100"/> Here ldapUserRegistry line is repeating twice where one should be basicUserRegistry xml file which should be commented.. Thanks in advance for your help here On Monday, November 12, 2018 at 10:53:39 PM UTC+5:30, visar wrote: > > Hello Dick, > > Yes, You are right that the given play is working . > > The playbook is making changes on the xml file, but not as expected. Its > making double entry for same ldap settings. one is commented another is > uncommented. > > <include location="conf/ldapUserRegistry.xml"/> > <!--include location="conf/ldapUserRegistry.xml"/--> > > But here I want a result like comment only the basic user registry line > and uncomment ldap line > > > here the basic registry line itself got removed.. > > On Monday, November 12, 2018 at 9:44:32 PM UTC+5:30, Dick Visser wrote: >> >> On Fri, 9 Nov 2018 at 13:27, visar <vivu...@gmail.com> wrote: >> > >> > Hello Visser, >> > >> > Appreciate your time for checking this. >> > >> > Here i am little confused that, >> > >> > Here I just want to modify the server.xml file only. >> > (comment basicuserregistry.xml and uncomment ldapuseruserregistry.xml >> file). >> > >> > Both the files are already present there in the defined location >> already, but just want to edit the server.xml file to comment and >> uncomment.. >> >> It would rather see the appreciation for my time by trying out the >> playbook that I sent. >> Because there is a very good chance that it will solve your problem. >> Please let me know how it went. >> >> Dick >> > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/27f3060b-739c-4b4a-839f-c6b1f7727f4c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.