openstack-ansible-os_magnum/tasks/magnum_install.yml

30 lines
1.2 KiB
YAML

---
# Copyright 2014, Rackspace US, Inc.
#
# 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: Install the python venv
include_role:
name: "python_venv_build"
vars:
venv_build_constraints: "{{ magnum_git_constraints }}"
venv_install_destination_path: "{{ magnum_bin | dirname }}"
venv_install_distro_package_list: "{{ magnum_distro_packages }}"
venv_pip_install_args: "{{ magnum_pip_install_args }}"
venv_pip_packages: "{{ magnum_pip_packages | union(magnum_user_pip_packages) +
(magnum_oslomsg_amqp1_enabled | bool) | ternary(magnum_optional_oslomsg_amqp1_pip_packages, []) }}"
venv_facts_when_changed:
- section: "magnum"
option: "venv_tag"
value: "{{ magnum_venv_tag }}"