opentelekomcloud.security_group
Security Group
A simple tool for easy management of security groups in Open Telekom Cloud.
Requirements
You need to have openstacksdk installed on the server where you are running this and be connected to Open Telekom Cloud.
Role Variables
securitygroup_name
: '' # The name for the security group you want to createdescription
: '' # A description for the security grouprules
: # List of rules for the security groupprotocol
: '' # Choose from udp, gre, tcp, icmpport_range_min
: '' # Optional, should be between 0 and 65535port_range_max
: '' # Optional, should be between 0 and 65535remote_ip_prefix
: '' # Specify IP or netmask, 0.0.0.0/0 means all IP addresses are allowed
Dependencies
- None specified
Example Playbook
Here’s how to use this role with some example variables:
- 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 description' }
Example for deleting a security group:
- hosts: localhost
roles:
- { role: opentelekomcloud.security_group, state: 'absent', securitygroup_name: 'my_test' }
License
BSD
Author Information
Open Telekom Cloud
Installa
ansible-galaxy install opentelekomcloud.security_group
Licenza
apache-2.0
Download
2.3k
Proprietario
Some projects related to OpenTelekomCloud. Blueprints and whitepapers can be found at github.com/opentelekomcloud-blueprints