Let's go ahead and create an isolated network and name it private, as follows:
- name: creating a private network os_network: state: present name: private
In the preceding example, we created a logical network with no subnets. A network with no subnets is of little use, so the next step would be to create a subnet:
- name: creating a private subnet os_subnet: state: present network_name: private name: app cidr: 192.168.0.0/24 dns_nameservers: - 8.8.4.4 - 8.8.8.8 host_routes: - destination: 0.0.0.0/0 nexthop: 104.131.86.234 - destination: 192.168.0.0/24 nexthop: 192.168.0.1
..................Content has been hidden....................
You can't read the all page of ebook, please click
here login for view all page.