bifrost/playbooks/roles/bifrost-keystone-install/tasks/install.yml
Dmitry Tantsur d842e9fe83 Consistent pip_opts handling + drop --no-cache-dir
Change-Id: I0727cd273447a3ef19a8c1cd9d3e9a68116974bb
2021-02-03 15:35:02 +01:00

51 lines
1.5 KiB
YAML

# 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 packages"
package:
name: "{{ required_packages }}"
state: present
# NOTE(TheJulia) While we don't necessarilly require /opt/stack any longer
# and it should already be created by the Ansible setup, we will leave this
# here for the time being.
- name: "Ensure /opt/stack is present"
file: name=/opt/stack state=directory owner=root group=root
when: not skip_install | bool
- name: "Install pymysql"
include_role:
name: bifrost-pip-install
vars:
package: pymysql
- name: "Install uWSGI in venv if using"
include_role:
name: bifrost-pip-install
vars:
package: uWSGI
- name: "Install python-openstackclient"
include_role:
name: bifrost-pip-install
vars:
package: python-openstackclient
- name: "Install keystone"
include_role:
name: bifrost-pip-install
vars:
package: keystone
sourcedir: "{{ keystone_git_folder }}"
source_install: "{{ keystone_source_install }}"