Ansible win_fileモジュールで、Windows11やWindows Server 2022のフォルダ内の複数のファイルを削除する方法です。 まず、Windowsで使えるwin-fileモジュールの説明はこちらです。 win_file – Creates, touches or removes files or directories — Ansible Documentation 使用例の抜粋です。 === - name: Touch a file (creates if not present, updates modification time if present) win…