From c8aab8b743a7809796311ac0c638d3e28cb896bd Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Fri, 27 Jul 2018 15:57:33 -0400 Subject: [PATCH] Install optional packages after venv path update Change-Id: Ieec2be7525407a9278d9e828ce3e7a8770dc1ea2 --- tasks/tacker_install.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tasks/tacker_install.yml b/tasks/tacker_install.yml index eca290d..aa8e4a6 100644 --- a/tasks/tacker_install.yml +++ b/tasks/tacker_install.yml @@ -96,20 +96,6 @@ notify: - Restart tacker services -- name: Install optional pip packages - pip: - name: "{{ tacker_optional_oslomsg_amqp1_pip_packages }}" - state: "{{ tacker_pip_package_state }}" - virtualenv: "{{ tacker_bin | dirname }}" - virtualenv_site_packages: "no" - when: tacker_oslomsg_amqp1_enabled - register: install_optional_packages - until: install_optional_packages is success - retries: 5 - delay: 2 - notify: - - Restart tacker services - - name: Remove python from path first (CentOS, openSUSE) file: path: "{{ tacker_bin | dirname }}/bin/python2.7" @@ -139,6 +125,20 @@ when: - tacker_get_venv is changed +- name: Install optional pip packages + pip: + name: "{{ tacker_optional_oslomsg_amqp1_pip_packages }}" + state: "{{ tacker_pip_package_state }}" + virtualenv: "{{ tacker_bin | dirname }}" + virtualenv_site_packages: "no" + when: tacker_oslomsg_amqp1_enabled + register: install_optional_packages + until: install_optional_packages is success + retries: 5 + delay: 2 + notify: + - Restart tacker services + - name: Record the venv tag deployed ini_file: dest: "/etc/ansible/facts.d/openstack_ansible.fact"