# Ansible /SSH questions?

**URL:** <https://forum.ansible.com/t/ansible-ssh-questions/19683>\
**Category:** Ansible Project\
**Created:** [November 3, 2015, 2:26pm UTC](https://forum.ansible.com/t/ansible-ssh-questions/19683 "2015-11-03T14:26:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GBANE\_FETIGUE](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Post date:** [November 3, 2015, 2:26pm UTC](https://forum.ansible.com/t/ansible-ssh-questions/19683/1 "2015-11-03T14:26:04Z")

</div>

> Hi  
>   
>   
>   
> I am trying to understand something between SSH and ansible set on inventory. I am running a playbook deployment and whenever I set the inventory like that : [status] qastatus ansible\_ssh\_user=ansible ansible\_ssh\_host=172.16.19.34 ansible\_ssh\_private\_key\_file=~/credentials/ansible\_id\_rsa I am having permission denied but when I set like that  
>   
>   
>   
> [status] 172.16.19.34 ansible\_connection=local it start running the deployment process find and stop here:  
>   
>   
>   
> TASK: [nodejs\_app | Pull down code] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* failed: [172.16.19.34] =\> {“changed”: true, “cmd”: [“s3cmd”, “-c”, “/root/.s3cfg”, “get”, “s3://snapav-code/cs-system-status/cs-system-status-7ab76c7ec22af26fa3605d55750b6050e5ca17d5-2015-11-02\_03-23-46–75.tar.gz”, “/var/cs-apps/cs-system-status/7ab76c7ec22af26fa3605d55750b6050e5ca17d5-2015-11-02\_03-23-46–75”], “delta”: “0:00:00.148056”, “end”: “2015-11-02 22:45:36.958560”, “item”: “”, “rc”: 1, “start”: “2015-11-02 22:45:36.810504”} stderr: ERROR: /root/.s3cfg: Permission denied ERROR: Configuration file not available. ERROR: Consider using --configure parameter to create one.  
>   
>   
>   
> I don’t know why ??? what should I do to fix it ?  
>   
>   
> |   
> |

---

<div class="post-metadata">

**Author:** ![David\_Lloyd](https://avatars.discourse-cdn.com/v4/letter/d/bbce88/32.png) [@David\_Lloyd](https://forum.ansible.com/u/David_Lloyd)\
**Post date:** [November 3, 2015, 6:28pm UTC](https://forum.ansible.com/t/ansible-ssh-questions/19683/2 "2015-11-03T18:28:08Z")

</div>

It’s looking for an .s3cfg file on your local machine - which it either can’t find or it can’t read.

1. Does it exist?
2. Can the local user read it?
3. Of course, the .s3cfg needs to be configured properly - looks like

[http://s3tools.org/kb/item14.htm](http://s3tools.org/kb/item14.htm) may be helpful here

What exactly is the playbook meant to do?

DSL

---

<div class="post-metadata">

**Author:** ![GBANE\_FETIGUE](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Post date:** [November 4, 2015, 4:48pm UTC](https://forum.ansible.com/t/ansible-ssh-questions/19683/3 "2015-11-04T16:48:08Z")

</div>

The playbook is supposed to deploy a git repo on another server.  
the thing is from the ansible I am able to ssh the slave( I mean the other server)

1. locally not it doesn’t exist on the master which is an EC2 instance as well the slave
