Merge "Install optional packages after venv path update"
This commit is contained in:
commit
d0b9dcaaff
@ -96,20 +96,6 @@
|
|||||||
notify:
|
notify:
|
||||||
- Restart tacker services
|
- 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)
|
- name: Remove python from path first (CentOS, openSUSE)
|
||||||
file:
|
file:
|
||||||
path: "{{ tacker_bin | dirname }}/bin/python2.7"
|
path: "{{ tacker_bin | dirname }}/bin/python2.7"
|
||||||
@ -139,6 +125,20 @@
|
|||||||
when:
|
when:
|
||||||
- tacker_get_venv is changed
|
- 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
|
- name: Record the venv tag deployed
|
||||||
ini_file:
|
ini_file:
|
||||||
dest: "/etc/ansible/facts.d/openstack_ansible.fact"
|
dest: "/etc/ansible/facts.d/openstack_ansible.fact"
|
||||||
|
Loading…
Reference in New Issue
Block a user