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