Comments (5)
Hey @bartdorlandt. I am not sure as this matters? Basically speaking there is only the root user inside the container, so it will make that if it doesn't already exist? I could make a .ssh directory? Would that resolve the issue?
from docker-ansible.
Hi @willhallonline , I was just referring to the documentation. I see now, that I wasn't very clear. apologies.
The documentation shows:
Mount local directory and ssh key
$ docker run --rm -it -v $(pwd):/ansible -v ~/.ssh/id_rsa:/root/id_rsa willhallonline/ansible:2.7 /bin/sh
Injecting commands
$ docker run --rm -it -v $(pwd):/ansible -v ~/.ssh/id_rsa:/root/id_rsa willhallonline/ansible:2.7 ansible-playbook playbook.yml
I believe they should be:
Mount local directory and ssh key
$ docker run --rm -it -v $(pwd):/ansible -v ~/.ssh/id_rsa:/root/.ssh/id_rsa willhallonline/ansible:2.7 /bin/sh
Injecting commands
$ docker run --rm -it -v $(pwd):/ansible -v ~/.ssh/id_rsa:/root/.ssh/id_rsa willhallonline/ansible:2.7 ansible-playbook playbook.yml
Note the ".ssh/" between root and id_rsa.
The bash_aliases show pretty much the same, but with the correct mount points.
if desired i could do a pull request.
from docker-ansible.
If you want to do a PR that would be good 🥇 . If you don't want to then I'll do it, but I would love to say that someone else has contributed 👍 😀
from docker-ansible.
You are totally right by the way with regards to the issue.
from docker-ansible.
PR done. cheers.
from docker-ansible.
Related Issues (20)
- Install "ansible" collection (pip package) HOT 3
- building failed from alpine image HOT 2
- Request: Immutable tags on docker hub HOT 9
- Dockerfile for ansible 2.9 take the latest mitogen version HOT 3
- container restarting loop HOT 2
- Wrong ansible versions in the ubuntu- and alpine- based ansible-2.11 images HOT 2
- Error for local steps with ansible:2.9-alpine-3.12 container HOT 2
- Wrong Docker image tags for Alpine versions
- All tags seem to run ansible core 2.13.1 HOT 3
- Wrong 'password_hash' module result for 'bcrypt' algorithm using willhallonline/ansible:2.12-bullseye image HOT 6
- ERROR! Invalid play strategy specified: mitogen_linear when using ansible-base/alpine316/Dockerfile HOT 3
- ARM64v8 images HOT 7
- Include pymssql python and ansible collection community-general dependencies HOT 2
- Alpine 3.17 with Ansible-lint issue with `packaging` HOT 1
- ansible-galaxy requires resolvelib <0.6.0, >=0.5.3 HOT 4
- New architecture for image with latest tag on Docker Hub HOT 6
- ansible-galaxy collection list is rather old HOT 3
- Version 2.15-ubuntu-22.04 unable to run playbook HOT 2
- Ansible 2.16 HOT 2
- ansible-galaxy requires resolvelib<0.9.0,>=0.5.3 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-ansible.