https://github.com/jtprogru/ansible-role-hosts
Ansible role for managing hosts file
https://github.com/jtprogru/ansible-role-hosts
ansible ansible-role hosts hostsfile
Last synced: over 1 year ago
JSON representation
Ansible role for managing hosts file
- Host: GitHub
- URL: https://github.com/jtprogru/ansible-role-hosts
- Owner: jtprogru
- License: wtfpl
- Created: 2021-04-17T18:32:37.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-03T13:27:27.000Z (almost 5 years ago)
- Last Synced: 2023-03-02T17:26:48.297Z (over 3 years ago)
- Topics: ansible, ansible-role, hosts, hostsfile
- Language: Jinja
- Homepage: https://galaxy.ansible.com/jtprogru/hosts/
- Size: 69.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# jtprogru.hosts



[](https://galaxy.ansible.com/jtprogru/hosts/)
[](https://github.com/jtprogru/ansible-role-hosts/tags)
Simple role for manage `/etc/hosts` file.
## Role Variables
See [`defaults/main.yml`](defaults/main.yml).
## Example Playbook
Example playbook:
```yaml
---
- name: Manage hosts file
hosts: all
become: true
vars:
host_prefix: '10.110.0.0/24'
roles:
- jtprogru.hosts
```
## Author
Michael Savin aka `@jtprogru`
Twitter: [](https://twitter.com/jtprogru/)
## License
See [LICENSE](LICENSE.md)