27 lines
805 B
YAML
27 lines
805 B
YAML
---
|
|
- name: ensure rndc configuration path exists
|
|
become: true
|
|
file:
|
|
path: "{{ designate_worker_config_file_path }}/private"
|
|
state: directory
|
|
|
|
- name: create rndc configurations for each bind instance
|
|
become: true
|
|
template:
|
|
src: rndc.conf.j2
|
|
dest: "{{ designate_worker_config_file_path }}/private/bind{{ index|int + 1 }}.conf"
|
|
loop: "{{ designate_bind_node_ips|flatten(levels=1) }}"
|
|
loop_control:
|
|
index_var: index
|
|
|
|
- name: create rndc configurations for each external bind instance
|
|
become: true
|
|
template:
|
|
src: rndc.conf.j2
|
|
dest: "{{ designate_worker_config_file_path }}/private/xbind{{ index|int + 1 }}.conf"
|
|
vars:
|
|
server_rndc_key: "{{ item.rndc_key }}"
|
|
loop: "{{ tripleo_external_bind_servers|flatten(levels=1) }}"
|
|
loop_control:
|
|
index_var: index
|