D
D
DenZel2020-02-29 18:59:15
linux
DenZel, 2020-02-29 18:59:15

Is it possible to deploy a server through another using Ansible?

Hello!
tell me, is it possible to deploy the server using Ansible through another server that does not have Ansible.
Now I do this: I connect to the 1st server, deploy the Ansible environment there and launch the playbook to deploy the 2nd server from it.
I read about ssh-agent, but maybe someone will clarify whether this can be done with its help.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Shitskov, 2020-02-29
@gen4_gdm

Apparently it means the so-called. connection via Bastion or Jumphost - an intermediate ssh server. Look for documentation on such a setup or articles like this one:
https://selivan.github.io/2018/01/29/ansible-ssh-b...

S
Sanes, 2020-02-29
@Sanes

Even python doesn't have to be installed. It can be installed first with a task.

185.xxx.xxx.202	ansible_connection=ssh	ansible_user=root ansible_ssh_private_key_file=/root/.ssh/id_rsa

Read about the difference between Pull and Push.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question