diff options
Diffstat (limited to 'ansible/roles/magnum/tasks/config.yml')
| -rw-r--r-- | ansible/roles/magnum/tasks/config.yml | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/ansible/roles/magnum/tasks/config.yml b/ansible/roles/magnum/tasks/config.yml deleted file mode 100644 index 2fa679bc6..000000000 --- a/ansible/roles/magnum/tasks/config.yml +++ /dev/null @@ -1,48 +0,0 @@ ---- -- name: Ensuring config directories exist - file: - path: "{{ node_config_directory }}/{{ item }}" - state: "directory" - recurse: yes - with_items: - - "magnum-api" - - "magnum-conductor" - -- name: Copying over config.json files for services - template: - src: "{{ item }}.json.j2" - dest: "{{ node_config_directory }}/{{ item }}/config.json" - with_items: - - "magnum-api" - - "magnum-conductor" - -- name: Copying over magnum.conf - merge_configs: - vars: - service_name: "magnum-api" - sources: - - "{{ role_path }}/templates/magnum.conf.j2" - - "{{ node_custom_config }}/global.conf" - - "{{ node_custom_config }}/database.conf" - - "{{ node_custom_config }}/messaging.conf" - - "{{ node_custom_config }}/magnum.conf" - - "{{ node_custom_config }}/magnum/{{ item }}.conf" - - "{{ node_custom_config }}/magnum/{{ inventory_hostname }}/magnum.conf" - dest: "{{ node_config_directory }}/{{ item }}/magnum.conf" - with_items: - - "magnum-api" - - "magnum-conductor" - -- name: Check if policies shall be overwritten - local_action: stat path="{{ node_custom_config }}/magnum/policy.json" - register: magnum_policy - -- name: Copying over existing policy.json - template: - src: "{{ node_custom_config }}/magnum/policy.json" - dest: "{{ node_config_directory }}/{{ item }}/policy.json" - with_items: - - "magnum-api" - - "magnum-conductor" - when: - magnum_policy.stat.exists |
