win_file module unable to delete directory symbolic links present inside a target dir

22 views
Skip to first unread message

ishan jain

unread,
Mar 8, 2016, 5:24:53 AM3/8/16
to Ansible Project
I am trying to delete a parent dir with lots of stuff inside with the help of win_file:

- name: remove all
  win_file: path="E:\root" state=absent

This folder contains a lot other subfolders and symbolic links within itself - both directory and file symbolic links. When i try to run this, i get "DirectoryNotFoundException" for the directory symbolic links. For file symbolic links, win_file is able to delete all of them.
How can i make Ansible delete everything in a directory, including directory symbolic links ?

ishan jain

unread,
Mar 17, 2016, 1:14:34 AM3/17/16
to Ansible Project
Still haven't figured out the solution. Need help here...
Reply all
Reply to author
Forward
0 new messages