From 650b95a7d015d1c2ac50d9c77a06d6a647a4c3ed Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Sun, 3 Dec 2017 12:39:34 +0000 Subject: [PATCH] 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 --- tasks/main.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 4e92066f..3d6d5fb9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 \ No newline at end of file