openstack-ansible/playbooks/openstack-resources.yml
Jonathan Rosser 792f1c6a4c Use openstack.osa.install_defaults role instead of vars_files
This role already exists in the openstack-ansible-plugins repo
and can be used from that collection. This patch removes the
duplicate code in the openstack-ansible repository.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/923390
Change-Id: I6df03a592f586e14dde9d33a192ebabc485b90f5
2024-07-12 19:23:22 +00:00

34 lines
1.4 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
- 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({}) }}"