tower playbook with key

23 views
Skip to first unread message

Jennifer LaVoie

unread,
Apr 13, 2022, 8:37:23 AM4/13/22
to Ansible Project
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\nUSE...@HOST-dev.domain.edu: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).",
    "changed": false



thank you

Jen
Reply all
Reply to author
Forward
0 new messages