--- - name: Install dnsmasq configuration template: src: origin-dns.conf.j2 dest: /etc/dnsmasq.d/origin-dns.conf notify: restart dnsmasq - name: Deploy additional dnsmasq.conf template: src: "{{ openshift_node_dnsmasq_additional_config_file }}" dest: /etc/dnsmasq.d/openshift-ansible.conf owner: root group: root mode: 0644 when: openshift_node_dnsmasq_additional_config_file is defined notify: restart dnsmasq - name: Enable dnsmasq systemd: name: dnsmasq enabled: yes state: started # Dynamic NetworkManager based dispatcher - include_tasks: dnsmasq/network-manager.yml when: network_manager_active | bool