Install optional packages after venv path update

Change-Id: Idd40b73e8776f736ccfd09c40dc924b5351cea45
This commit is contained in:
Andy Smith
2018-07-27 16:12:45 -04:00
parent a91a35b3f6
commit 26a8d0ecfb
+15 -15
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"