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 year ago
JSON representation
Ansible role to set up dnsmasq to resolve a domain name and its sub-domains to the ansible_host
- Host: GitHub
- URL: https://github.com/artcom/ansible-role-dnsmasq
- Owner: artcom
- License: mit
- Created: 2020-09-10T13:03:15.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-21T13:44:11.000Z (over 5 years ago)
- Last Synced: 2025-05-17T19:37:58.877Z (about 1 year ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 14
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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