Ignoring connection errors #1365
Unanswered
EricDriussi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to migrate from Ansible and I can't figure out this part of the puzzle:
What I'm trying to achieve
Given a server with root ssh access, as a first step before provisioning, I want to set up a non-root sudo user.
This new user should be used to do the provisioning.
Subsequent runs should not produce errors when trying to do the first step (or the connection error should be ignored).
What seems to partially work
Simplified
inventory.py
:Simplified
deploy.py
:Issues
This setup produces a connection error on subsequent runs:
Is there a way to maybe ignore that connection error?
Or maybe I'm approaching this the wrong way?
Beta Was this translation helpful? Give feedback.
All reactions