add_host
Role Name
Add given hosts to hostfile.
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
Install
ansible-galaxy install weshouman/ansible-role-add-host
License
mit
Downloads
24
Owner