I am not sure if this is a feature or a bug. I’m using ansible to update tnsnames.ora - pre-run we have
lrwxrwxrwx 1 oracle dba 17 Sep 24 2012 tnsnames.ora → /etc/tnsnames.ora
I then run something like
lineinfile: dest=/apps/ora/product/11.2.3.4/network/admin/tnsnames.ora regexp=“{{ environment_name }}” line=“{{ environment_name }}=(DESCRIPTION-oracle-etc-blah)”
The link is gone, and there is a file instead:
-rw-rw-r-- 1 oracle dba 356 Jul 10 14:28 tnsnames.ora