Skip to content

fgci-org/ansible-role-hosts-int

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-role-hosts-int

Build Status

Populate /etc/hosts with IP addresses for an internal cluster network, including IB addresses.

Requirements

The hosts in the ansible hosts file must have a variable int_ip_addr specifying the IP address to use, and ib_ip_addr for the Infiniband address.

Role Variables

intDomain: The internal subdomainname
siteDomain: The external site domain name
hosts_int_file_to_populate: /etc/hosts

The generated hosts file will have entries with the domain intDomain.siteDomain.

Dependencies

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  roles:
     - { role: ansible-role-hosts-int }

License

MIT

Author Information

https://github.com/jabl