dnsmasq.yml 819 B

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. - name: Install dnsmasq configuration
  3. template:
  4. src: origin-dns.conf.j2
  5. dest: /etc/dnsmasq.d/origin-dns.conf
  6. notify: restart dnsmasq
  7. - name: Install node-dnsmasq configuration
  8. template:
  9. src: node-dnsmasq.conf.j2
  10. dest: /etc/dnsmasq.d/node-dnsmasq.conf
  11. notify: restart dnsmasq
  12. - name: Deploy additional dnsmasq.conf
  13. template:
  14. src: "{{ openshift_node_dnsmasq_additional_config_file }}"
  15. dest: /etc/dnsmasq.d/openshift-ansible.conf
  16. owner: root
  17. group: root
  18. mode: 0644
  19. when: openshift_node_dnsmasq_additional_config_file is defined
  20. notify: restart dnsmasq
  21. - name: Enable dnsmasq
  22. systemd:
  23. name: dnsmasq
  24. enabled: yes
  25. state: started
  26. # Dynamic NetworkManager based dispatcher
  27. - import_tasks: dnsmasq/network-manager.yml
  28. when: network_manager_active | bool