Run pip once and for all

Since openstack_hosts role configures the hosts (whether
containers or bare metal nodes) appropriately for their
package management needs (repos for example), we can extend
this to the installation of pip:
It means the openstack_hosts is a role that ensure you have
everything you need to run openstack.

We can then completely ignore pip_install everywhere else to
avoid a length repetition on bare metal nodes.

Depends-On: Ic959a42f7c6fb33b80e646b6689fc2d54f4f9ac8
Change-Id: If3412bb888ebb854874bbc43eb76bfcb3e4a7868
This commit is contained in:
Jean-Philippe Evrard 2017-12-03 12:39:34 +00:00
parent 190c9f220f
commit 650b95a7d0
1 changed files with 10 additions and 5 deletions

View File

@ -68,10 +68,15 @@
tags:
- openstack_hosts-install
# Host should be ready for any openstack role after this step
- name: Run the pip install role
include_role:
name: pip_install
when:
- "host_need_pip | default(True) | bool"
tags:
- openstack_hosts-install
- include: openstack_authorized_keys.yml
tags:
- openstack_hosts-config
# Now run the pip install role and your host should be ready!
#- include_role: pip_install
# when: host_need_pip | default(True) | bool
- openstack_hosts-config