From f111884736f754452825c0c592ac166dba2eaf4d Mon Sep 17 00:00:00 2001 From: jorge-perez Date: Fri, 26 Jan 2024 08:26:34 -0600 Subject: [PATCH] added task to update subnet to remove default gateway Signed-off-by: jorge-perez --- ansible/playbooks/infra-deploy.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ansible/playbooks/infra-deploy.yaml b/ansible/playbooks/infra-deploy.yaml index 898c7739..48bf7590 100644 --- a/ansible/playbooks/infra-deploy.yaml +++ b/ansible/playbooks/infra-deploy.yaml @@ -185,6 +185,15 @@ port_security_enabled: false register: _result_network_internal_create - name: Create subnet internal + openstack.cloud.subnet: + cloud: "{{ os_cloud_name }}" + state: present + network_name: "{{ os_network_name }}-internal" + name: "{{ os_network_name }}-subnet-internal" + cidr: 192.168.0.0/22 + # The disable_gateway_ip setting only works + # on an update and not a create + - name: Update subnet internal openstack.cloud.subnet: cloud: "{{ os_cloud_name }}" state: present @@ -201,6 +210,14 @@ port_security_enabled: false register: _result_network_compute_create - name: Create subnet internal + openstack.cloud.subnet: + cloud: "{{ os_cloud_name }}" + state: present + network_name: "{{ os_network_name }}-compute" + name: "{{ os_network_name }}-subnet-compute" + cidr: 192.168.100.0/22 + is_dhcp_enabled: false + - name: Update subnet internal openstack.cloud.subnet: cloud: "{{ os_cloud_name }}" state: present