goldyfruit.ibmcloud_automation.ic_is_floating_ip (1.0.4) — module

Manage VPC floating IPs 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

Floating IPs allow inbound and outbound traffic from the Internet to an instance.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Reserve floating IP within a zone
  ic_is_floating_ip:
    fip: ibmcloud-fip-baby
    zone: us-south-3
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Reserve floating IP and bound it to a reserved IP
  ic_is_floating_ip:
    fip: ibmcloud-fip-baby
    target: 69e55145-cc7d-4d8e-9e1f-cc3fb60b1793
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Release floating IP
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- ic_is_floating_ip:
    fip:  ibmcloud-fip-baby
    state: release

Inputs

    
fip:
    description:
    - The unique user-defined name for this floating IP.
    required: true
    type: str

zone:
    description:
    - The name of the zone to provision a floating IP in.
    type: str

state:
    choices:
    - present
    - absent
    - reserve
    - release
    default: present
    description:
    - Should the resource be present, absent, attach or detach.
    type: str

target:
    description:
    - The target this address is to be bound to.
    - Target could be the network interface of VSI instance.
    type: str

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