hosts

Build Status Ansible Galaxy

Ansible hosts

Setup entries in hosts file.

Requirements

Access to edit the /etc/hosts file.

Role Variables

Configuration key Description Default value
hosts_entries The actual entries block to add to the hosts file None
hosts_file The hosts file to modify /etc/hosts

Dependencies

None.

Example Playbook

- hosts: "servers"
  roles:
  - role: "mireiawen.hosts"
    hosts_entries: |
      8.8.8.8 google.dns example.org
      192.168.0.200   example.local

License

MIT, see LICENSE

About

Setup entries in hosts file (/etc/hosts)

Install
ansible-galaxy install Mireiawen/ansible-role-hosts
GitHub repository
License
mit
Downloads
203