pgkehle.hosts
Ansible Role - hosts
Update hosts file with a list of hosts
Available on Ansible Galaxy: isaackehle.hosts
This project rolls through all of the host variables, looking for those with ip_address set. When it is set, this assumes that the ip address is hard coded, thus not available in a DHCP server. Thus, add the fqdn and ip address to the hosts file.
Variables
inventory_hostname: localhost or machine short hostname
Examples
- hosts: all
gather_facts: inventory_hostname != 'localhost'
roles:
- isaackehle.hosts
Linting
yamllint -c yamllint.yaml .
ansible-lint .
License
MIT
