Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {%- for host in groups.linux %}
- {%- set vars = hostvars[host] %}
- Host {{ vars.inventory_hostname_short }}
- {#- add the fqdn as alias if present #}
- {%- if host != vars.inventory_hostname_short %} {{ host }}{% endif %}
- Hostname {{ vars.ansible_ssh_host }}
- IdentityFile {{ vars.ansible_ssh_private_key_file }}
- {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement