Merge "Install optional packages after venv path update"

This commit is contained in:
Zuul 2018-08-09 06:09:44 +00:00 committed by Gerrit Code Review
commit 19c82c942d
1 changed files with 15 additions and 15 deletions

View File

@ -90,21 +90,6 @@
- Manage LB
- Restart masakari services
- name: Install optional pip packages
pip:
name: "{{ masakari_optional_oslomsg_amqp1_pip_packages }}"
state: "{{ masakari_pip_package_state }}"
virtualenv: "{{ masakari_bin | dirname }}"
virtualenv_site_packages: "no"
when: masakari_oslomsg_amqp1_enabled
register: install_optional_packages
until: install_optional_packages is success
retries: 5
delay: 2
notify:
- Manage LB
- Restart masakari services
- name: Remove python from path first (CentOS, openSUSE)
file:
path: "{{ masakari_bin | dirname }}/bin/python2.7"
@ -133,6 +118,21 @@
tags:
- skip_ansible_lint
- name: Install optional pip packages
pip:
name: "{{ masakari_optional_oslomsg_amqp1_pip_packages }}"
state: "{{ masakari_pip_package_state }}"
virtualenv: "{{ masakari_bin | dirname }}"
virtualenv_site_packages: "no"
when: masakari_oslomsg_amqp1_enabled
register: install_optional_packages
until: install_optional_packages is success
retries: 5
delay: 2
notify:
- Manage LB
- Restart masakari services
- name: Record the need for a service restart
ini_file:
dest: "/etc/ansible/facts.d/openstack_ansible.fact"