add_host

Role Name

Add given hosts to hostfile.

Status

Build Status

This role doesn't work on docker containers (centos and ubuntu so far). Follow this issue.
TODO: Migrate tests to non-Docker provider.

Role Variables

hostname: the hostname to be added.
address: the hostname address.

Example Playbook

- hosts: servers
  roles:
     - { role: weshouman.add_host, hostname: local.example.com, address: 192.168.10.10 }

License

MIT

Author Information

Authored by Walid Shouman

About

Ansible role to add hosts to /etc/hosts

Install
ansible-galaxy install weshouman/ansible-role-add-host
GitHub repository
License
mit
Downloads
24