lineinfile changes symbolic link to file

49 views
Skip to first unread message

jepper

unread,
Jul 10, 2014, 10:35:27 AM7/10/14
to ansible...@googlegroups.com
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

Michael DeHaan

unread,
Jul 11, 2014, 6:24:06 PM7/11/14
to ansible...@googlegroups.com
Seems like it should follow links.

Can you please file a bug for this?

Thanks!


--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c62e670d-908a-4740-a9ac-1167f403a394%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages