Is there a way to do this? I have a playbook with two tasks. The first task uses Yum module (and python 2 interpreter). The next task uses aws_s3 module (and python3 interpreter), but fails because the playbook is still trying to use python2 interpreter. (the error is: can’t find boto3…)
I tested this by using two separate Playbooks and declaring the appropriate python interpreter at the Playbook level:
`vars` is a 'task keyword' different from module options, the problem
was that you mixed both. This is an indentation issue, not order
(keywords can appear in any order).