Happy to hear its working for you!
ssh-agent likely gets a little tricky when in the container. I can't speak
to a better way to do this as I havent had to overcome the
Passphrase-protected keys yet. That said, if you continue to have issues,
let me know what OS Base you are using for the containe
Ok the thing now is running, seems it needs to store on a temporal
repository, mine was pointing to /var/jenkins/.ansible, so y generated a
ansible.cfg with this configuration on the same folder where my hosts file
is:
ssh_args = -C -o ControlMaster=auto -o ControlPersist=60s
control_path = /de
Hi Robert, thanks for the advice and the link. I've tried the mentioned
method and noticed there's a directory known as "cp"on the route
"/var/jenkins_home/.ansible" (yes, with a dot) where a file is generated
while trying to connect to the remote server where generates a file named
"45a4bb8b49
Thanks for the hint, I’ll start moving on with your suggestions. I’ll come back
to documento t this and let you know.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an e
I understand and do not disagree.
I would try the process noted on that link. Keep in mind that because you
are in a container, you will need to add those to your dockerfile and
reaping the container.
I'm presently using a main Jenkins container that starts ephemeral
ansible/jnlp containers as ex
Same container.
Generating the certificate without passwords makes problems with ssh server.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to ansible-project+u
I do not currently have an example of this or an environment to test it in,
but a quick search turned up:
https://www.calazan.com/using-ssh-agent-forwarding-with-ansible/
You could also regenerate the key without a passphrase or fallback to UN/PW
auth.
Out of curiosity are you running Jenkins and
Thank you, yes I have generated the key with a password, but didn’t configured
it for the Ansible connection, now I’m searching how to do it, but if you have
an example will be helpful.
Thank you again
--
You received this message because you are subscribed to the Google Groups
"Ansible Proje
Is your ssh key password protected and if so did you configured forwarding
in the ssh-agent or a similar work around?
On Sat, Jul 6, 2019, 3:07 PM Indian Velumani wrote:
> Hi,
>
> When want to start a docker image as container means you have run a
> command like
> docker run -d (image: version).
Hi,
When want to start a docker image as container means you have run a command
like
docker run -d (image: version).
On there just add like this
docker run --net=host -d (image: version)
Then login to the docker using
docker exec command
Then execute your ansible playbook.
On Sun, Jul 7, 2019, 00
Thank you for your quick response, but where do you suggest to run it? In
my case the element that has Ansible is a Docker container. Docker
container have Jenkins and Ansible.
Ansible script doesn't run any Docker command actually. Sorry is my
question sounds dumb but I'm new to Docker and Ansi
Hi,
Run docker command with --net=host.
Thanks.
On Sun, Jul 7, 2019, 00:00 Claudio Rivas wrote:
> Hi,
>
> I'm trying to connect to remote host through SSH and a Private Key to run
> a simple test to start working with Ansible to generate my inventories:
>
> ansible -m ping -i hosts test1 -vvv
Hi,
I'm trying to connect to remote host through SSH and a Private Key to run a
simple test to start working with Ansible to generate my inventories:
ansible -m ping -i hosts test1 -vvv
Hosts file have a simple configuration
[test]
test1 ansible_host=remote_host ansible_user=remote_user
an
13 matches
Mail list logo