diff options
author | Thomas Wiest <twiest@users.noreply.github.com> | 2016-02-04 16:27:31 -0500 |
---|---|---|
committer | Thomas Wiest <twiest@users.noreply.github.com> | 2016-02-04 16:27:31 -0500 |
commit | b25ad7c7462c1ead726fa998e99b12a0c4da8676 (patch) | |
tree | aba2da336673022ed2525bbbbd6952df334b79f8 /roles/dns/tasks/main.yml | |
parent | a467f94a0157eaee88900dd466dd79dab2befa52 (diff) | |
parent | 82d474d7b1ba564f051c1ccf125413f4cca28d42 (diff) | |
download | openshift-b25ad7c7462c1ead726fa998e99b12a0c4da8676.tar.gz openshift-b25ad7c7462c1ead726fa998e99b12a0c4da8676.tar.bz2 openshift-b25ad7c7462c1ead726fa998e99b12a0c4da8676.tar.xz openshift-b25ad7c7462c1ead726fa998e99b12a0c4da8676.zip |
Merge pull request #1206 from lhuard1A/openstack_dns
Add a DNS server on OpenStack clusters
Diffstat (limited to 'roles/dns/tasks/main.yml')
-rw-r--r-- | roles/dns/tasks/main.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/dns/tasks/main.yml b/roles/dns/tasks/main.yml new file mode 100644 index 000000000..af728585d --- /dev/null +++ b/roles/dns/tasks/main.yml @@ -0,0 +1,22 @@ +- name: Install Bind + action: "{{ ansible_pkg_mgr }} name=bind" + +- name: Configure Bind + template: + src: "{{ item.src }}" + dest: "{{ item.dest }}" + validate: "{{ item.validate }}" + with_items: + - src: openshift-cluster.zone + dest: /var/named/openshift-cluster.zone + validate: "named-checkzone {{ dns_zones[0] }} %s" + - src: named.conf + dest: /etc/named.conf + validate: "named-checkconf %s" + notify: restart bind + +- name: Enable Bind + service: + name: named + state: started + enabled: yes |