2017-04-28 12:21:50 +02:00
|
|
|
---
|
|
|
|
- name: Ensuring config directories exist
|
|
|
|
file:
|
2017-08-17 12:42:53 +02:00
|
|
|
path: "{{ node_config_directory }}/{{ item.key }}"
|
2017-04-28 12:21:50 +02:00
|
|
|
state: "directory"
|
2016-08-24 00:28:08 +07:00
|
|
|
owner: "{{ config_owner_user }}"
|
|
|
|
group: "{{ config_owner_group }}"
|
|
|
|
mode: "0770"
|
|
|
|
become: true
|
2017-04-28 12:21:50 +02:00
|
|
|
when:
|
|
|
|
- inventory_hostname in groups[item.value.group]
|
|
|
|
- item.value.enabled | bool
|
|
|
|
with_dict: "{{ skydive_services }}"
|
|
|
|
|
2020-04-10 13:53:19 -07:00
|
|
|
- include_tasks: copy-certs.yml
|
2019-12-18 15:49:28 -08:00
|
|
|
when:
|
|
|
|
- kolla_copy_ca_into_containers | bool
|
|
|
|
|
2017-04-28 12:21:50 +02:00
|
|
|
- name: Copying over default config.json files
|
|
|
|
template:
|
|
|
|
src: "{{ item.key }}.json.j2"
|
|
|
|
dest: "{{ node_config_directory }}/{{ item.key }}/config.json"
|
2016-08-24 00:28:08 +07:00
|
|
|
mode: "0660"
|
|
|
|
become: true
|
2017-04-28 12:21:50 +02:00
|
|
|
when:
|
|
|
|
- inventory_hostname in groups[item.value.group]
|
|
|
|
- item.value.enabled | bool
|
|
|
|
with_dict: "{{ skydive_services }}"
|
|
|
|
notify:
|
2019-03-26 09:56:29 +00:00
|
|
|
- Restart {{ item.key }} container
|
2017-04-28 12:21:50 +02:00
|
|
|
|
|
|
|
- name: Copying over skydive config file
|
2020-06-02 16:21:03 +03:00
|
|
|
merge_yaml:
|
|
|
|
sources:
|
|
|
|
- "{{ role_path }}/templates/{{ item.key }}.conf.j2"
|
|
|
|
- "{{ node_custom_config }}/skydive.conf"
|
|
|
|
- "{{ node_custom_config }}/skydive/{{ item.key }}.conf"
|
|
|
|
- "{{ node_custom_config }}/skydive/{{ inventory_hostname }}/{{ item.key }}.conf"
|
2017-04-28 12:21:50 +02:00
|
|
|
dest: "{{ node_config_directory }}/{{ item.key }}/skydive.conf"
|
2016-08-24 00:28:08 +07:00
|
|
|
mode: "0660"
|
|
|
|
become: true
|
2017-04-28 12:21:50 +02:00
|
|
|
when:
|
|
|
|
- item.value.enabled | bool
|
|
|
|
- inventory_hostname in groups[item.value.group]
|
|
|
|
with_dict: "{{ skydive_services }}"
|
|
|
|
notify:
|
2019-03-26 09:56:29 +00:00
|
|
|
- Restart {{ item.key }} container
|
2017-04-28 12:21:50 +02:00
|
|
|
|
2020-06-29 14:48:43 +01:00
|
|
|
- import_tasks: check-containers.yml
|
2019-03-22 19:06:37 -06:00
|
|
|
when: kolla_action != "config"
|