Dmitry Tantsur fc2b247f64 Make skip_install a normal boolean variable
Currently we skip installation if it's set to any value, even false.

Change-Id: I980d91302e58c086210cbcdb1e51dfcd05ec1722
2020-07-17 14:26:27 +02:00

52 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 }}"
extra_args: "--no-cache-dir {{ pip_opts }}"