Skip to content

Instantly share code, notes, and snippets.

@amaurybsouza
Created February 13, 2022 14:27
Show Gist options
  • Save amaurybsouza/27ca0a46b4409c2704fabd2d2cae322d to your computer and use it in GitHub Desktop.
Save amaurybsouza/27ca0a46b4409c2704fabd2d2cae322d to your computer and use it in GitHub Desktop.
Ansible-ad-hoc-command-error
$ ansible aws -m ping -i inventory.yml
elliot01 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ubuntu@54.233.152.5: Permission denied (publickey).",
"unreachable": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment