-
Notifications
You must be signed in to change notification settings - Fork 1
/
default_ingress.yml
47 lines (43 loc) · 1.28 KB
/
default_ingress.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
- hosts: localhost
connection: local
gather_facts: false
tasks:
- name: Add IPv4 ICMP ingress rules to default security group
openstack.cloud.security_group_rule:
security_group: default
direction: ingress
protocol: icmp
ether_type: IPv4
remote_ip_prefix: 0.0.0.0/0
- name: Add IPv6 ICMP ingress rules to default security group
openstack.cloud.security_group_rule:
security_group: default
direction: ingress
protocol: icmp
ether_type: IPv6
remote_ip_prefix: ::/0
- name: Add IPv4 TCP ingress rules to default security group
openstack.cloud.security_group_rule:
security_group: default
direction: ingress
protocol: tcp
ether_type: IPv4
port_range_min: '{{ item }}'
port_range_max: '{{ item }}'
remote_ip_prefix: 0.0.0.0/0
with_items:
- 22
- 80
- name: Add IPv6 TCP ingress rules to default security group
openstack.cloud.security_group_rule:
security_group: default
direction: ingress
protocol: tcp
ether_type: IPv6
port_range_min: '{{ item }}'
port_range_max: '{{ item }}'
remote_ip_prefix: ::/0
with_items:
- 22
- 80