Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mivok/ansible-hosts
/etc/hosts management role
https://github.com/mivok/ansible-hosts
Last synced: 24 days ago
JSON representation
/etc/hosts management role
- Host: GitHub
- URL: https://github.com/mivok/ansible-hosts
- Owner: mivok
- License: mit
- Created: 2013-12-21T19:47:08.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-21T23:00:21.000Z (about 11 years ago)
- Last Synced: 2023-04-14T00:12:03.479Z (over 1 year ago)
- Size: 102 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hosts role
This role will manage the hosts file on a server, providing IPs for every host
ansible manages. This is useful when you don't have DNS set up for each host
and you want to be able to connect from one host to another by name.It uses the template module and completely takes over the hosts file, so don't
use this if you want to manage the hosts file with another tool also.Note that ansible needs to collect facts for all hosts that need to be
included in the host file in the first play of the playbook.## Example usage
This role doesn't take any configuration, as it just adds IPs for every host
managed. To use it, just add the role to your role list in a playbook:---
- hosts: all
roles:
- hosts