Just a heads up for anyone going down this path. You might want to add the following action. In library (e.g. in my case I’m working in /opt/ansible, so /opt/ansible/library), run:
for f in grep -ri "/usr/bin/env python" * | cut -d":" -f1
; do sed -i ‘s//usr/bin/env python//usr/bin/env python26/g’ $f; done
before running make rpm. Otherwise you can do this after the fact in /usr/share/ansible
-Rawiri