amnay-mo.hosts

ansible-role-hosts

Configures /etc/hosts via templating

Role Variables

hosts: list of {address, name} hashes as /etc/hosts entries

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
      remote_user: root
      roles:
         - role: ansible-role-hosts
           hosts: 
             - address: '192.168.1.1'
               name: 'host1'
             - address: '192.168.1.2'
               name: 'host2'

License

MIT

About

Ansible role for configuring /etc/hosts with template

Install
ansible-galaxy install amnay-mo.hosts
GitHub repository
License
mit
Downloads
58
Owner