March 2019
Intermediate to advanced
412 pages
9h 49m
English
Finally, a word on jump hosts. It is common for network devices to be behind a bastion of jump hosts of some kind for important security reasons. Ansible provides a number of mechanisms for doing this, depending on the underlying network transport. For example, SSH connectivity (such as with Cumulus Linux switches) can make use of SSH's ability to proxy commands. There are several ways to achieve these, but the simplest is to add an additional group variable to the inventory. For example, if we can only access our Cumulus Linux switch via a host called bastion01, our inventory variables section would look like this:
[cumulus:vars]ansible_user=cumulusansible_ssh_pass=CumulusLinux!ansible_ssh_common_args='-o ProxyCommand="ssh -W ...
Read now
Unlock full access