This Ansible role adds host records to /etc/hosts
, including host aliases (optional).
save_hosts: [] # hosts to save
save_hosts:
- name: example.net
ip: 8.8.8.8
- name: example.com
ip: 8.8.4.4
aliases:
- dns
- googledns
Public Domain
Serhiy Oplakanets serhiy@oplakanets.com