Hi,
I am trying to create an EC2 instance using ansible Package.
When ansible playbook is executed, it is output as follows
Action Output
{
"succeeded": false,
"failed": true,
"return_code": 2,
"stderr": "[WARNING]: No inventory was parsed, only implicit localhost is available\n[WARNING]: provided hosts list is empty, only localhost is available. Note that\nthe implicit localhost does not match 'all'\nExecuted command \"/opt/stackstorm/virtualenvs/ansible/bin/ansible-playbook /ansible_playbooks/ec2a/roles/lamp.yml\"",
"stdout": "\nPLAY [localhost] ***************************************************************\n\nTASK [Gathering Facts] *********************************************************\nok: [localhost]\n\nTASK [aws : create keypair] ****************************************************\nfatal: [localhost]: FAILED! => {\"changed\": false, \"msg\": \"Failed to import the required Python library (botocore or boto3) on stack's Python /opt/stackstorm/virtualenvs/ansible/bin/python. Please read module documentation and install in the appropriate location\"}\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 \n"
}
error
{
"succeeded": false,
"failed": true,
"return_code": 2,
"stderr": "[WARNING]: No inventory was parsed, only implicit localhost is available\n[WARNING]: provided hosts list is empty, only localhost is available. Note that\nthe implicit localhost does not match 'all'\nExecuted command \"/opt/stackstorm/virtualenvs/ansible/bin/ansible-playbook /ansible_playbooks/ec2a/roles/lamp.yml\"",
"stdout": "\nPLAY [localhost] ***************************************************************\n\nTASK [Gathering Facts] *********************************************************\nok: [localhost]\n\nTASK [aws : create keypair] ****************************************************\nfatal: [localhost]: FAILED! => {\"changed\": false, \"msg\": \"Failed to import the required Python library (botocore or boto3) on stack's Python /opt/stackstorm/virtualenvs/ansible/bin/python. Please read module documentation and install in the appropriate location\"}\n\nPLAY RECAP *********************************************************************\nlocalhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 \n"
}
There seems to be no boto3, but how can I solve it?