On Tuesday, 22 January 2019 17:16:03 CET [email protected] wrote: > Ansible master -ssh- hostA -ssh- hostB, ansible master can not access HostB > directly. > If I want to deploy services on hostB, can I configure hostA in a playbook, > and include another playbook with hostB? > E.g - hosts: HostA > Tasks: > - include: inner playbook.yml > inner playbook: > - hosts: HostB > Tasks: > .... > Actually, the method of playbook does not work. I don’t want to use ssh proxy > though it works. Does anyone else can give me with some suggestion?
It's been on the list many times and you also find a lot of articles on Internet. Search for bastion, jumphost, proxycommand and/or proxyjump. -- Kai Stian Olstad -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3385300.UDqcFbA5OK%40x1. For more options, visit https://groups.google.com/d/optout.
