I have a directory like this
/sample
|---iis
| |---default
| | |-------testfile
| |
| |---lookup
| |---README
|
|---linux
|
|---sql
|
|---win1
| |---default
| | |------testfile
| |
| |---local
| |
| |---lookup
| | |------lookup.csv
| |
| |---README
|
---win2
| |---default
| |---local
| |---lookup
| |---README
I want to write an Ansible playbook to delete all contents within directories that begin with "win" except "local" directory. after running the playbook, sample directory must be something like this
/sample
|---iis
| |---default
| | |-------testfile
| |
| |---lookup
| |---README
|
|---linux
|
|---sql
|
|---win1
| |---local
|
---win2
| |---local