Merge "Do not run neutron upgrade when no hosts in group"

This commit is contained in:
Zuul 2022-12-08 13:30:36 +00:00 committed by Gerrit Code Review
commit fa6c19f58e

View File

@ -19,8 +19,13 @@
gather_facts: false gather_facts: false
user: root user: root
vars: vars:
neutron_host_to_check: "{{ groups['neutron_all'][0] }}" neutron_group: 'neutron_all'
neutron_host_to_check: "{{ groups[neutron_group][0] }}"
tasks: tasks:
- name: End task if neutron is not deployed
meta: end_play
when: not groups[neutron_group]
- name: Define neutron variables for upgrade - name: Define neutron variables for upgrade
lineinfile: lineinfile:
dest: "{{ openstack_config_dir }}/user_neutron_migration.yml" dest: "{{ openstack_config_dir }}/user_neutron_migration.yml"