You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 27, 2024. It is now read-only.
I've docker community Edition (Version 18.06.1-ce-mac73 (26764)) and Ansible 2.7.10 installed on my mac.
Now I'm running a docker container with ubuntu image with the below command.
docker run --name mycontainer --hostname=mytargethost -p 22 -it ubuntu:trusty
and now I'm trying to connect to the above docker container using below ansible command
ansible -i inventory all -m ping
but I'm getting below error
target | UNREACHABLE! => {
"changed": false,
"msg": "Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in "/tmp". Failed command was: ( umask 77 && mkdir -p "echo ~/.ansible/tmp/ansible-tmp-1556218439.8837771-137578925211239" && echo ansible-tmp-1556218439.8837771-137578925211239="echo ~/.ansible/tmp/ansible-tmp-1556218439.8837771-137578925211239" ), exited with result 1",
"unreachable": true
}
Hi,
I've docker community Edition (Version 18.06.1-ce-mac73 (26764)) and Ansible 2.7.10 installed on my mac.
Now I'm running a docker container with ubuntu image with the below command.
docker run --name mycontainer --hostname=mytargethost -p 22 -it ubuntu:trusty
and now I'm trying to connect to the above docker container using below ansible command
but I'm getting below error
This is what I've in my 'inventory' file
Can someone suggest me what's the issue and how can i fix this?
The text was updated successfully, but these errors were encountered: