Disable Octavia management gateway on update

A previous commit [0] disables the gateway of the lb-mgmt-subnet when
the subnet is created, but the playbook should also disable the gateway
if the subnet already exists (on update for instance).

[0] I1d007e59f95de815bd465d8d452d8270434f8090

Change-Id: I0c2377ad14ec244069bc022a64b64c3e39b07779
(cherry picked from commit ebaeef728d)
This commit is contained in:
Gregory Thiemonge 2022-03-22 10:00:59 +01:00
parent 1fbbf40615
commit c68f48ebf8
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@
--gateway none \
--network {{ lb_mgmt_net_id }} \
--subnet-range {{ lb_mgmt_subnet_cidr }}
else
openstack subnet set --gateway none {{ lb_mgmt_subnet_name }}
fi
register: lb_mgmt_subnet_result
changed_when: (lb_mgmt_subnet_result.stdout | length) > 0