Comments (2)
Hello,
I have the same issue deploying with Docker, while trying to connect with a different user than root (but still having root privileges).
fatal: [XXX.XXX.XXX.XXX]: UNREACHABLE! => {
"changed": false,
"unreachable": true
}
MSG:
Failed to connect to the host via ssh: Warning: Permanently added 'XXX.XXX.XXX.XXX' (ECDSA) to the list of known hosts.
[email protected]: Permission denied (publickey,password).
PLAY RECAP ****************************************************************************
XXX.XXX.XXX.XXX : ok=0 changed=0 unreachable=1 failed=0
Same as above, outside deployment the SSH is working fine, and did work fine during the deployment guide.
I also tried to change options of the ansible.cfg inside the leihs instance but I saw it gets rewritten while running the deploy.
Do you know a quick solution to the problem?
Control machine: Ubuntu 20.04
Host: Ubuntu Server 16.04
Daniele
from leihs-instance.
We needed to add the local ssh-files to the scripts/-from-docker file.
-v "/home/$USER/.ssh/:/root/.ssh/" \
Our files looks like this:
#!/bin/sh -eu
# build the docker image and tag it with a name
docker build -t leihs/ansible-controller ./leihs/deploy
# start a temporary container from this image,
# mounting our working directory in it,
# passing through ssh-agent from host so passwordless auth works,
# then run given command
docker run --rm -it \
-w "/leihs-instance/leihs/deploy" \
-v "$(pwd):/leihs-instance" \
-v "$(pwd)/tmp:/tmp/tmp" \
-v "$(pwd)/leihs:/leihs" \
-e S3_CACHE_ENDPOINT="${S3_CACHE_ENDPOINT:-}" \
-e S3_CACHE_BUCKET="${S3_CACHE_BUCKET:-}" \
-e S3_ACCESS_KEY_ID="${S3_ACCESS_KEY_ID:-}" \
-e S3_SECRET_ACCESS_KEY="${S3_SECRET_ACCESS_KEY:-}" \
-v "/home/$USER/.ssh/:/root/.ssh/" \
leihs/ansible-controller \
"$@"
After that we got an error regarding the .ssh/config file which was moved to config.old as a quick fix.
I hope this is helpful.
Lukas
from leihs-instance.
Related Issues (20)
- docker deploy stuck at TASK [leihs-database-install : install ruby] HOT 2
- Can't set default language HOT 1
- Fehler beim Ausführen von ./scripts/deploy-from-docker HOT 2
- Deployment not working (mimemagic (0.3.0) - version could not be found) HOT 9
- Deployment not working HOT 3
- Leihs version 6.0.0: TASK [leihs-mail-install : create jar] error HOT 12
- Deployment not working HOT 3
- Deployment not working - error in TASK [leihs-my-install : create jar] HOT 2
- Deployment issues with Docker: SSH: mux_client_read_packet: read header failed: Broken pipe
- How to run the commands to install Leihs on a Debian 10 server HOT 1
- Update to 6.3.1 HOT 1
- Update/Deployment fails: Collecting cryptography==36.0.1 HOT 2
- Update to 6.4.1 HOT 1
- broken link in Guide.md
- Wrong server requirements in GUIDE.md
- Syntax error in tasks/service.yml while deploying v7 HOT 1
- No customer Menu in top bar HOT 1
- Docker-Deploy stuck at TASK [install system python] HOT 3
- Leihs deploy-from-docker stuck at [leihs-mail-install : create jar] HOT 3
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 leihs-instance.