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:
- hosts: ec2lin remote_user: ec2-user become: yes become_user: root vars: 
ansible_python_interpreter: /usr/bin/python3








Each task worked in a separate playbook. but I would rather use a single 
playbook for both Tasks.


Is it possible to set the "ansible_python_interpreter" at the Task level - 
 With a keyword or variable or something? 

Thank You 

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c2ddf028-d91c-45dd-bd83-058b5afa8960%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to