# tower playbook with key

**URL:** <https://forum.ansible.com/t/tower-playbook-with-key/36526>\
**Category:** Ansible Project\
**Created:** [April 13, 2022, 12:37pm UTC](https://forum.ansible.com/t/tower-playbook-with-key/36526 "2022-04-13T12:37:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jennifer\_LaVoie](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jennifer_lavoie/32/8543_2.png) [@Jennifer\_LaVoie](https://forum.ansible.com/u/Jennifer_LaVoie)\
**Post date:** [April 13, 2022, 12:37pm UTC](https://forum.ansible.com/t/tower-playbook-with-key/36526/1 "2022-04-13T12:37:23Z")

</div>

Good morning

Is it ok to ask Tower questions here too? I’m trying to run a playbook (uptime) in ansible tower. I can get it to work with my ssh key at the CLI, but no luck yet with tower. I think its not presenting my key correctly. Any guidance is appreciated

Here are the variable I added in the template

ansible\_ssh\_connection: ssh  
ansible\_ssh\_user: USERNAME  
ansible\_ssh\_private\_key\_file: /home/USERNAME/.ssh/PRIVKEY

This is the error (sample)

“unreachable”: true,  
“msg”: “Failed to connect to the host via ssh: Warning: Permanently added ‘HOST-dev.domain.edu,x.x.x.x’ (ECDSA) to the list of known hosts.\r\nno such identity: /home/USERNAME/.ssh/PRIVKEY: No such file or directory\r\nUSERNAME@HOST-dev.domain.edu: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).”,  
“changed”: false

thank you

Jen
