mireiawen.hosts
Ansible Hosts
This role sets up entries in the hosts file.
Requirements
You need access to edit the /etc/hosts file.
Role Variables
Here are the configuration keys you can use:
| Configuration Key | Description | Default Value |
|---|---|---|
hosts_entries |
The entries to add to the hosts file | None |
hosts_file |
The hosts file you want to modify | /etc/hosts |
Dependencies
There are no dependencies.
Example Playbook
Here's an example of how to use this role in a playbook:
- hosts: "servers"
roles:
- role: "mireiawen.hosts"
hosts_entries: |
8.8.8.8 google.dns example.org
192.168.0.200 example.local
License
This role is licensed under the MIT License. See the LICENSE file for details.
Installa
ansible-galaxy install mireiawen.hostsLicenza
mit
Download
219
Proprietario
