tpotce/cloud/ansible/openstack/roles/create_net/tasks/main.yaml

34 lines
802 B
YAML
Raw Normal View History

2019-08-13 09:16:02 +00:00
- name: Create security group
2021-02-13 16:46:28 +00:00
openstack.cloud.security_group:
2021-02-13 17:29:27 +00:00
cloud: "{{ cloud }}"
2021-04-15 14:58:19 +00:00
name: sg-tpot-ansible
description: Security Group for T-Pot
2019-08-13 09:16:02 +00:00
- name: Add rules to security group
2021-02-13 16:46:28 +00:00
openstack.cloud.security_group_rule:
2021-02-13 17:29:27 +00:00
cloud: "{{ cloud }}"
2021-04-15 14:58:19 +00:00
security_group: sg-tpot-ansible
remote_ip_prefix: 0.0.0.0/0
- name: Create network
2021-02-13 16:46:28 +00:00
openstack.cloud.network:
2021-02-13 17:29:27 +00:00
cloud: "{{ cloud }}"
2021-04-15 14:58:19 +00:00
name: network-tpot-ansible
- name: Create subnet
2021-02-13 16:46:28 +00:00
openstack.cloud.subnet:
2021-02-13 17:29:27 +00:00
cloud: "{{ cloud }}"
2021-04-15 14:58:19 +00:00
network_name: network-tpot-ansible
name: subnet-tpot-ansible
cidr: 192.168.0.0/24
dns_nameservers:
- 1.1.1.1
- 8.8.8.8
- name: Create router
2021-02-13 16:46:28 +00:00
openstack.cloud.router:
2021-02-13 17:29:27 +00:00
cloud: "{{ cloud }}"
2021-04-15 14:58:19 +00:00
name: router-tpot-ansible
interfaces:
2021-04-15 14:58:19 +00:00
- subnet-tpot-ansible