Do not run neutron upgrade when no hosts in group
We not always have hosts in neutron_all group. So we skip running neutron migration only when there're neutron hosts in groups. Change-Id: Idac16939f7488cc4dca1fed7ed67c19cd2640c5d
This commit is contained in:
parent
46cdfe2260
commit
eac4cf0b23
@ -19,8 +19,13 @@
|
||||
gather_facts: false
|
||||
user: root
|
||||
vars:
|
||||
neutron_host_to_check: "{{ groups['neutron_all'][0] }}"
|
||||
neutron_group: 'neutron_all'
|
||||
neutron_host_to_check: "{{ groups[neutron_group][0] }}"
|
||||
tasks:
|
||||
- name: End task if neutron is not deployed
|
||||
meta: end_play
|
||||
when: not groups[neutron_group]
|
||||
|
||||
- name: Define neutron variables for upgrade
|
||||
lineinfile:
|
||||
dest: "{{ openstack_config_dir }}/user_neutron_migration.yml"
|
||||
|
Loading…
x
Reference in New Issue
Block a user