Do not install neutron venv if not needed.

Change-Id: I3675cbb5e7e9b37fce47d995e69edde945c1b581
This commit is contained in:
Marc Gariepy 2022-11-03 13:39:01 -04:00 committed by Dmitriy Rabotyagov
parent cf298622a9
commit e74d486424
3 changed files with 7 additions and 2 deletions

View File

@ -86,7 +86,9 @@
- section: "neutron"
option: "venv_tag"
value: "{{ neutron_venv_tag }}"
when: neutron_install_method == 'source'
when:
- neutron_install_method == 'source'
- ((filtered_neutron_services|length) + (uwsgi_neutron_services|length)) > 0
- name: Initialise the upgrade facts
ini_file:

View File

@ -92,7 +92,9 @@
src: "{{ neutron_bin }}/neutron-keepalived-state-change"
dest: "/usr/local/bin/neutron-keepalived-state-change"
state: link
when: neutron_install_method == 'source'
when:
- neutron_install_method == 'source'
- ((filtered_neutron_services|length) + (uwsgi_neutron_services|length)) > 0
- name: Preserve original configuration file(s)
command: "cp {{ item.target_f }} {{ item.target_f }}.original"

View File

@ -49,6 +49,7 @@
neutron_conf_dir_stat.stat.isdir
when:
- neutron_install_method == 'source'
- ((filtered_neutron_services|length) + (uwsgi_neutron_services|length)) > 0
- name: Create neutron dir
file: