goldyfruit.ibmcloud_automation.ic_is_gateway (1.0.4) — module

Manage VPC public gateways 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

A public gateway is a virtual network device associated with a VPC, which allows access to the Internet. A public gateway resides in a zone and can be connected to subnets in the same zone only.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create public gateway with random floating IP
  ic_is_gateway:
    gateway: ibmcloud-public-gateway-baby
    vpc: ibmcloud-vpc-baby
    zone: us-south-3
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create public gateway with defined floating IP
  ic_is_gateway:
    gateway: ibmcloud-public-gateway-baby
    vpc: ibmcloud-vpc-baby
    zone: us-south-3
    floating_ip: 128.128.129.129
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete public gateway
  ic_is_gateway:
    gateway: ibmcloud-gateway-baby
    vpc: ibmcloud-vpc-baby
    zone: us-south-3
    state: absent

Inputs

    
vpc:
    description:
    - The VPC this public gateway will serve
    required: true
    type: str

zone:
    description:
    - The zone name where this public gateway will be created.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Should the resource be present or absent.
    type: str

gateway:
    description:
    - The user-defined name for this public gateway.
    required: true
    type: str

floating_ip:
    description:
    - Identifies a floating IP by a unique property (C(IP address)).
    type: str

resource_group:
    description:
    - The resource group to use. If unspecified, the account's default resource group
      is used.
    type: str