goldyfruit.ibmcloud_automation.ic_is_security_group_rule_info (1.0.4) — module

Retrieve VPC security group rules on IBM Cloud.

| "added in version" 2.9 of goldyfruit.ibmcloud_automation"

Authors: Gaëtan Trellu (@goldyfruit)

preview | supported by community

Install collection

Install with ansible-galaxy collection install goldyfruit.ibmcloud_automation:==1.0.4


Add to requirements.yml

  collections:
    - name: goldyfruit.ibmcloud_automation
      version: 1.0.4

Description

This module lists all the security group rules for a particular security group. These rules define what traffic the security group permits. Security group rules are stateful, such that reverse traffic in response to allowed traffic is automatically permitted.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Retrieve rules from security group
  ic_is_security_group_rule_info:
    group: ibmcloud-sec-group-baby
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Retrieve specific rule from security group
  ic_is_security_group_rule_info:
    group: ibmcloud-sec-group-baby
    rule: ibmcloud-sec-group-rule-baby

Inputs

    
rule:
    description:
    - Restrict results to rule with ID or name matching.
    type: str

group:
    description:
    - Security group ID or name.
    required: true
    type: str