aws ec2_key module permission denied error in ANSIBLE TOWER

20 views
Skip to first unread message

pinky

unread,
Sep 27, 2016, 1:06:03 PM9/27/16
to Ansible Project
Hi all,

          Iam new bee to Ansible tower, When iam running this module in tower it shows me permission denied.My credentials for aws are correct and it autheticates successfully in tower .But When loading this module it shows something like this :+1: 

---
- name:  keypair creation
  ec2_key:
     name: "jake"
     region: us-west-2
  register: output


Here i exported my aws credentials 

**My result:**

localhost> ESTABLISH LOCAL CONNECTION FOR USER: awx

fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_name": "ec2_key"}, "module_stderr": "/bin/sh: /usr/bin/sudo: Permission denied\n", "module_stdout": "", "msg": "MODULE FAILURE", "parsed": false}

NO MORE HOSTS LEFT *************************************************************

EXPECTED RESULTS:

Need to create keypair ..

I have also tried with become, become_user , become_method.But for all of that iam getting a same error.Also its a cloud module of ansible only.Then why iam facing this issue,whether iam missing any???

Thanks
Reply all
Reply to author
Forward
0 new messages