opentelekomcloud.security_group
安全组
一个方便管理 Open Telekom Cloud 中安全组的小角色。
要求
需要在执行主机上安装 openstacksdk,并且与 Open Telekom Cloud 连接。
角色变量
securitygroup_name: '' # 创建具有给定名称的安全组
description: '' # 创建安全组的描述
rules:
- protocol: '' # udp, gre, tcp, icmp
port_range_min: '' # 可选,0 到 65535
port_range_max: '' # 可选,0 到 65535
remote_ip_prefix: '' # IP/子网掩码后缀,0.0.0.0/0 -> 所有 IP 地址都被允许
依赖
-
示例剧本
提供一个如何使用你的角色的示例(例如,传递变量作为参数)对用户来说也很有帮助:
- hosts: localhost
vars:
rules:
- protocol: tcp
port_range_min: 80
port_range_max: 80
remote_ip_prefix: 0.0.0.0/0
- protocol: icmp
remote_ip_prefix: 0.0.0.0/0
- protocol: udp
remote_ip_prefix: 0.0.0.0/0
roles:
- { role: opentelekomcloud.security_group, securitygroup_name: 'my_test', description: 'some descr' }
删除安全组的示例:
- hosts: localhost
roles:
- { role: opentelekomcloud.security_group, state: 'absent', securitygroup_name: 'my_test' }
许可证
BSD
作者信息
Open Telekom Cloud
安装
ansible-galaxy install opentelekomcloud.security_group
许可证
apache-2.0
下载
2.3k
拥有者
Some projects related to OpenTelekomCloud. Blueprints and whitepapers can be found at github.com/opentelekomcloud-blueprints