Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/artcom/ansible-role-dnsmasq

Ansible role to set up dnsmasq to resolve a domain name and its sub-domains to the ansible_host
https://github.com/artcom/ansible-role-dnsmasq

Last synced: about 1 month ago
JSON representation

Ansible role to set up dnsmasq to resolve a domain name and its sub-domains to the ansible_host

Awesome Lists containing this project

README

        

# DNSMASQ
Ansible role to set up dnsmasq to resolve a domain name and its sub-domains to the `ansible_host` IP.

## Requirements
None.

## Role Variables
Available variables are listed below, along with default values `(see defaults/main.yml)`:
```yaml
hostname: null
default_interface: null
```
Required variables (role will fail if the variables are not set):
```yaml
hostname: "string"
default_interface: "string"
```

## Dependencies
* [check-required-variables](https://github.com/artcom/ansible-role-check-required-variables)

# Example Playbook
```yaml
- name: set up dnsmasq
hosts: all
become: true
roles:
- role: dnsmasq
```

## Test
### Requirements
- python >= 3.7
- vagrant

### Run
```bash
pip install -r requirements.txt
molecule test
```

## License
MIT