2017-09-07 15:01:30 +01:00
|
|
|
---
|
|
|
|
- name: Copying over rndc.conf (designate_backend_external)
|
|
|
|
template:
|
|
|
|
src: "{{ node_custom_config }}/designate/rndc.conf"
|
|
|
|
dest: "{{ node_config_directory }}/{{ item.key }}/rndc.conf"
|
2019-03-22 19:18:45 +00:00
|
|
|
mode: "0660"
|
2017-09-07 15:01:30 +01:00
|
|
|
when:
|
|
|
|
- designate_backend_external == 'bind9'
|
|
|
|
- item.key in [ "designate-worker" ]
|
|
|
|
- inventory_hostname in groups[item.value.group]
|
|
|
|
- item.value.enabled | bool
|
|
|
|
with_dict: "{{ designate_services }}"
|
|
|
|
notify:
|
2019-03-26 09:56:29 +00:00
|
|
|
- Restart {{ item.key }} container
|
2017-09-07 15:01:30 +01:00
|
|
|
|
|
|
|
- name: Copying over rndc.key (designate_backend_external)
|
|
|
|
template:
|
|
|
|
src: "{{ node_custom_config }}/designate/rndc.key"
|
|
|
|
dest: "{{ node_config_directory }}/{{ item.key }}/rndc.key"
|
2019-03-22 19:18:45 +00:00
|
|
|
mode: "0660"
|
2017-09-07 15:01:30 +01:00
|
|
|
when:
|
|
|
|
- designate_backend_external == 'bind9'
|
|
|
|
- item.key in [ "designate-worker" ]
|
|
|
|
- inventory_hostname in groups[item.value.group]
|
|
|
|
- item.value.enabled | bool
|
|
|
|
with_dict: "{{ designate_services }}"
|
|
|
|
notify:
|
2019-03-26 09:56:29 +00:00
|
|
|
- Restart {{ item.key }} container
|