This is expected as the ‘dest’ Parameter that you want to be absent is the webapps directory
I.E. it gets deleted
This is expected as the ‘dest’ Parameter that you want to be absent is the webapps directory
I.E. it gets deleted
The only really reliable way to do this I found is to first register the actual files, filter them and then delete them
Looks relevant:
http://www.mydailytutorials.com/ansible-delete-multiple-files-directories-ansible/
Search in the page for “A better option” to find the right stuff.
I haven’t tested the techniques myself, though.
Regards, K.