Yes, Simplest way is using the 'script' action and make sure the shebang on the script points to the python3 you want.
-- ---------- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7fnWjSsOiw2vFFAVankL4q6uXC_UrYJSa9waX%2Bxan0%3DAQ%40mail.gmail.com.