blob: 31ca46ec046361d58e832fc9343c36d84e96d10d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
---
- 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
|