community.general/lib/ansible/runner
Serge van Ginderachter 129c7522d9 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' }}
2013-07-05 18:05:26 +02:00
..
action_plugins add_host should not be a changed action 2013-06-25 10:58:55 -07:00
connection_plugins Improve interlaced output prevention when asking for host key approval. 2013-07-04 18:17:45 -04:00
filter_plugins Add Jinja2 filter |bool : return boolean interpretation of the value 2013-07-03 02:13:19 +02:00
lookup_plugins Merge branch 'with_inventory_hostnames' of git://github.com/sdossett/ansible into inv_hostnames 2013-06-19 22:01:57 -04:00
__init__.py allow ansible_ssh_host to be templated 2013-07-05 18:05:26 +02:00
connection.py Make private key customizable per host using ansible_ssh_private_key_file configurable as variable 2013-04-05 14:50:15 -04:00
poller.py typo fix 2013-04-25 23:04:17 -04:00
return_data.py Add code to flag legacy templating like $foo.{bar} as deprecated in favor of Jinja2 {{ foo.bar }} so we 2013-04-10 17:52:35 -04:00