diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-07-01 15:51:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-01 15:51:58 -0400 |
commit | 50f63b2c5d1c9bcbd6d11fcad68813735ab8f6db (patch) | |
tree | 69a0a2b73d4a2c75e12516998732aa254782c64a /roles/openshift_node_dnsmasq | |
parent | ef0c95df08b715edd91c84ffe77c86dc8234d6a0 (diff) | |
parent | 3f51b9847508ed0334d6d5c9d5717e83578668ba (diff) | |
download | openshift-50f63b2c5d1c9bcbd6d11fcad68813735ab8f6db.tar.gz openshift-50f63b2c5d1c9bcbd6d11fcad68813735ab8f6db.tar.bz2 openshift-50f63b2c5d1c9bcbd6d11fcad68813735ab8f6db.tar.xz openshift-50f63b2c5d1c9bcbd6d11fcad68813735ab8f6db.zip |
Merge pull request #2112 from sdodson/dnsmasq-additional-config
Add support for supplying a dnsmasq.conf file
Diffstat (limited to 'roles/openshift_node_dnsmasq')
-rw-r--r-- | roles/openshift_node_dnsmasq/handlers/main.yml | 7 | ||||
-rw-r--r-- | roles/openshift_node_dnsmasq/tasks/main.yml | 11 |
2 files changed, 17 insertions, 1 deletions
diff --git a/roles/openshift_node_dnsmasq/handlers/main.yml b/roles/openshift_node_dnsmasq/handlers/main.yml index 7e9e4d299..7d43b6106 100644 --- a/roles/openshift_node_dnsmasq/handlers/main.yml +++ b/roles/openshift_node_dnsmasq/handlers/main.yml @@ -1,5 +1,10 @@ --- - name: restart NetworkManager - service: + service: name: NetworkManager state: restarted + +- name: restart dnsmasq + service: + name: dnsmasq + state: restarted diff --git a/roles/openshift_node_dnsmasq/tasks/main.yml b/roles/openshift_node_dnsmasq/tasks/main.yml index 7147b78f5..bd9a0ffb6 100644 --- a/roles/openshift_node_dnsmasq/tasks/main.yml +++ b/roles/openshift_node_dnsmasq/tasks/main.yml @@ -17,6 +17,17 @@ 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 # Dynamic NetworkManager based dispatcher - include: ./network-manager.yml |