---
- hosts: controller
tasks:
- name: create modified_files.txt
command: git diff HEAD^ --name-only -- '*.py' > modified_files.txt