community / community.general / 0.1.4 / module / scaleway_security_group_rule Scaleway Security Group Rule management module Authors: Antoine Barbare (@abarbare)community.general.scaleway_security_group_rule (0.1.4) — module
Install with ansible-galaxy collection install community.general:==0.1.4
collections: - name: community.general version: 0.1.4
This module manages Security Group Rule on Scaleway account U(https://developer.scaleway.com)
- name: Create a Security Group Rule scaleway_security_group_rule: state: present region: par1 protocol: TCP port: 80 ip_range: 0.0.0.0/0 direction: inbound action: accept security_group: b57210ee-1281-4820-a6db-329f78596ecb register: security_group_rule_creation_task
port: description: - Port related to the rule, null value for all the ports required: true type: int state: choices: - present - absent default: present description: - Indicate desired state of the Security Group Rule. action: choices: - accept - drop description: - Rule action required: true region: choices: - ams1 - EMEA-NL-EVS - par1 - EMEA-FR-PAR1 description: - Scaleway region to use (for example C(par1)). required: true api_url: aliases: - base_url default: https://api.scaleway.com description: - Scaleway API URL. type: str ip_range: default: 0.0.0.0/0 description: - IPV4 CIDR notation to apply to the rule protocol: choices: - TCP - UDP - ICMP description: - Network protocol to use required: true api_token: aliases: - oauth_token description: - Scaleway OAuth token. type: str direction: choices: - inbound - outbound description: - Rule direction required: true api_timeout: aliases: - timeout default: 30 description: - HTTP timeout to Scaleway API in seconds. type: int security_group: description: - Security Group unique identifier required: true validate_certs: default: true description: - Validate SSL certs of the Scaleway API. type: bool query_parameters: default: {} description: - List of parameters passed to the query string. type: dict
data: description: This is only present when C(state=present) returned: when C(state=present) sample: scaleway_security_group_rule: action: accept dest_port_from: 80 dest_port_to: null direction: inbound editable: null id: 10cb0b9a-80f6-4830-abd7-a31cd828b5e9 ip_range: 0.0.0.0/0 position: 2 protocol: TCP type: dict