willhallonline / docker-ansible

Ansible inside Docker containers: Alpine, Ubuntu, Rocky & Debian with Ansible 2.16, 2.15, 2.14, 2.13, 2.12, 2.11, 2.10 and 2.9 + Mitogen
https://www.willhallonline.co.uk/project/docker/docker-ansible/
MIT License
376 stars 135 forks source link

GITCLONE via SSH within a container, using ahn SSH key pair #23

Closed Jean-Baptiste-Lasselle closed 3 years ago

Jean-Baptiste-Lasselle commented 4 years ago

hi again @willhallonline ,

chmod 700 -R /path/to/my/secrets/.ssh
chmod 644 -R /path/to/my/secrets/.ssh/my_public_key_file.pub
chmod 600 -R /path/to/my/secrets/.ssh/my_private_key_file

Don't hesitate asking me any additional infos,

And thank you for your work.

ps: worth mentioning, I don't use at all this repo, I just docker pull willhallonline/ansible:2.8-centos, and build my own image, FROM yours.

willhallonline commented 4 years ago

Hey @Jean-Baptiste-Lasselle , thanks for the great write up of your issue. I think that I understand the issue, however, I am not sure that I can help too much as I haven't really used this in a similar way. I will leave this issue open for the future to see whether I can fix it or do some testing.

willhallonline commented 3 years ago

I am going to close this, not sure what I can do and I can't reproduce bug.