Install optional packages after venv path update

Change-Id: Ieec2be7525407a9278d9e828ce3e7a8770dc1ea2
This commit is contained in:
Andy Smith 2018-07-27 15:57:33 -04:00
parent 53abb5bc80
commit c8aab8b743
1 changed files with 14 additions and 14 deletions

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"