blob: bd8abf564bd079f9ff4a2ff3add628a32f9b4610 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
---
- name: "Create {{ secgrp.name }} security group"
os_security_group:
state: present
name: "{{ secgrp.name }}"
- name: "Create {{ secgrp.name }} security group rule for ping"
os_security_group_rule:
security_group: "{{ secgrp.name }}"
protocol: icmp
remote_ip_prefix: "{{ item }}"
loop: "{{ secgrp.remote_ip_prefix }}"
- name: "Create {{ secgrp.name }} security group rule for SSH"
os_security_group_rule:
security_group: "{{ secgrp.name }}"
protocol: tcp
port_range_min: 22
port_range_max: 22
remote_ip_prefix: "{{ item }}"
loop: "{{ secgrp.remote_ip_prefix }}"
|