hosts
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
Install
ansible-galaxy install Mireiawen/ansible-role-hosts
License
mit
Downloads
203
Owner