Skip to content

Commit

Permalink
added task to update subnet to remove default gateway
Browse files Browse the repository at this point in the history
Signed-off-by: jorge-perez <[email protected]>
  • Loading branch information
japerezjr authored and cloudnull committed Jan 26, 2024
1 parent eb092f0 commit f111884
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ansible/playbooks/infra-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f111884

Please sign in to comment.