mirror of https://github.com/ansible/ansible.git
allow ansible_ssh_host to be templated
Use case: e.g. dual homed hosts on production en management network The inventory_hostname is the regular host name and matches the dns name on the production network; ansible connects to the host through a management network; the dns name on the management network is standardized and equals ${inventory_hostname}-mgt.mynetwork.com Now this can be configured as the default in group_vars/all: ansible_ssh_host: {{ inventory_hostname + '-mgt.mynetwork.com' }}pull/3451/head
parent
4a9f72dcce
commit
129c7522d9
Loading…
Reference in New Issue