dnsmasq

tests Ansible Galaxy

ansible-role-dnsmasq

This role installs and configures dnsmasq.

Requirements

Ansible 2.10 or newer.

Supported Platforms

Role Variables

Variable Required Default Choices Comments
dnsmasq_dependencies true dnsmasq string
dnsmasq_conf true {} dict

Dependencies

None

Example Playbook

- hosts: all
  roles:
    - role: ansible-role-dnsmasq
      dnsmasq_conf:
        main:
          - listen-address=127.0.0.1
          - bind-interfaces
        cache:
          - no-resolv
          - server=8.8.8.8
          - server=8.8.4.4
          - cache-size=500
          - neg-ttl=60
          - domain-needed
          - bogus-priv

Testing

molecule test

License

MIT

Author Information

@boutetnico

About

Install and configure dnsmasq.

Install
ansible-galaxy install boutetnico/ansible-role-dnsmasq
GitHub repository
License
mit
Downloads
17
Owner
System Engineer