Merge "Install optional packages after venv path update"

This commit is contained in:
Zuul 2018-08-09 06:17:26 +00:00 committed by Gerrit Code Review
commit d0b9dcaaff

View File

@ -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"