Original link: https://www.lfhacks.com/tech/ansible-clear-a-directory/
Ansible is used to execute commands on remote hosts. If you want to clear the contents of a certain folder, how should you configure a playbook?
This article is reprinted from: https://www.lfhacks.com/tech/ansible-clear-a-directory/
This site is for inclusion only, and the copyright belongs to the original author.