0053e7c385
In order to complete a playbook successfully we rely on having deploy-type specific variables, which are provided by install_defaults role. This used to be a simple include_vars statement instead, which was always executed with any tags, but it's not a case now with inlcude_role where we should explicitly take care about always running the role regardless of tags provided. Change-Id: I7a7112dd6a7c3a360dc6c0d206a855c220a027a6
39 lines
1.5 KiB
YAML
39 lines
1.5 KiB
YAML
---
|
|
# Copyright 2023, Cleura AB.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- name: Create requested OpenStack Resources
|
|
hosts: "{{ openstack_service_setup_host | default('localhost') }}"
|
|
tasks:
|
|
- name: Setup installation variables
|
|
include_role:
|
|
name: openstack.osa.install_defaults
|
|
defaults_from: "{{ install_method }}"
|
|
public: true
|
|
apply:
|
|
tags:
|
|
- always
|
|
tags:
|
|
- always
|
|
|
|
- name: Include openstack_resources role
|
|
ansible.builtin.include_role:
|
|
name: openstack.osa.openstack_resources
|
|
vars:
|
|
openstack_resources_identity: "{{ openstack_user_identity | default({}) }}"
|
|
openstack_resources_compute: "{{ openstack_user_compute | default({}) }}"
|
|
openstack_resources_network: "{{ openstack_user_network | default({}) }}"
|
|
openstack_resources_image: "{{ openstack_user_image | default({}) }}"
|
|
openstack_resources_coe: "{{ openstack_user_coe | default({}) }}"
|