Johannes Kastl
unread,Apr 12, 2016, 2:19:48 PM4/12/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Hi all,
excuse the subject, I'll try to explain:
I can tell ansible to delete all files from a certain directory, at
least I guess I can...
But can I tell it to exclude certain files?
I know I could use the synchronize module, which seems to be rsync in
disguise. But it seems a bit ugly, to keep around a lot of different
directories for all different hosts, where there are different files
in the directory.
Also, using file module to delete the directory and then populating it
with file or template would report 'changed' each time.
Any hints?
Johannes