Hi All

I am trying to remove multiple lines from a file. But not successful yet.

The file contents are:



SID_LIST_LISTENER=
  (SID_LIST=
    (SID_DESC=
      (GLOBAL_DBNAME=RS5_DBADATATEST2)
      (ORACLE_HOME=/orahome/app/oracle/product/11.2.0/dbhome_1)
      (SID_NAME=RS5)
    )
    (SID_DESC=
      (GLOBAL_DBNAME=SUMMER_DBADATATEST2)
      (ORACLE_HOME=/orahome/app/oracle/product/11.2.0/dbhome_1)
      (SID_NAME=SUMMER)
    )
  )




and  I  am trying to remove the following lines only:



    (SID_DESC=
      (GLOBAL_DBNAME=RS5_DBADATATEST2)
      (ORACLE_HOME=/orahome/app/oracle/product/11.2.0/dbhome_1)
      (SID_NAME=RS5)
    )



1]     I tried with blockinfile (with state=absent), but does not work. Not 
sure what should be the "markers"

2]     lineinfile also does not work for me with the ones I tried.


Any pointer would help.


Regards
Bhabani

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/534c1ebc-f1d6-4332-9270-f25783838b62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to