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"