--- - name: Configure dnsmasq collections: [ 'debops.debops', 'debops.roles01', 'debops.roles02', 'debops.roles03' ] hosts: [ 'debian10' ] become: True environment: '{{ inventory__environment | d({}) | combine(inventory__group_environment | d({})) | combine(inventory__host_environment | d({})) }}' vars: dnsmasq__dhcpv4: True dnsmasq__dhcpv6: False dnsmasq__interfaces: - name: 'eth1' # addresses: ['172.16.30.100'] domain: local dhcp_range_start: 180 dhcp_range_end: -6 dnsmasq__base_domain: 'local' # dnsmasq__configuration: # - name: 'dhcp-option.conf' # options: # - name: 'dhcp-option-1' # option: 'dhcp-option' # value: '1,255.255.255.0' # - name: 'dhcp-option-3' # option: 'dhcp-option' # value: '3,172.16.30.100' # - name: 'dhcp-option-6' # option: 'dhcp-option' # value: '6,172.16.30.100' pre_tasks: - name: Prepare dnsmasq environment import_role: name: 'dnsmasq' tasks_from: 'main_env' tags: [ 'role::dnsmasq', 'role::ferm', 'role::tcpwrappers' ] roles: - role: resolvconf tags: [ 'role::resolvconf', 'skip::resolvconf' ] resolvconf__dependent_services: - 'dnsmasq' - role: dnsmasq tags: [ 'role::dnsmasq', 'skip::dnsmasq' ]