I am trying to check via Ansible that whether the user (being used to connect) has write access to a given path - both on *linux hosts and windows hosts*.
I tried looking around but i could not get an easy way to do that. I might be getting wrong paths a lot, so the typical commands with raw module is not a good idea. So what i thought of is to create try and create a file in the path, possibly with the name as current epoch and later remove it. Anybody have a better idea on how to do this for windows and linux machines ? -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fc71c06b-207f-4731-895a-06dcce717172%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.