Ansible has a file `exists` filter which would be very helpful for building templates which are based on the files in the repo. A possible complication is that files may be in `targets` and not yet generated.