goldyfruit.ibmcloud_automation.ic_is_vpc_route (1.0.4) — module

Manage VPC routes from default routing table 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 creates a new route in the VPC's default routing table. The route prototype object is structured in the same way as a retrieved route, and contains the information necessary to create the new route.

The request will fail if the new route will cause a loop.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create route
  ic_is_vpc_route:
    vpc: ibmcloud-vpc-baby
    route: ibmcloud-route-baby
    destination: 192.168.0.0/24
    next_hop: 10.10.0.4
    zone: ibmcloud-zone-baby
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete route
  ic_is_vpc_route:
    vpc: ibmcloud-vpc-baby
    route: ibmcloud-route-baby
    state: absent

Inputs

    
vpc:
    description:
    - VPC name or ID.
    required: true
    type: str

zone:
    description:
    - The zone this route is to belong to.
    type: str

route:
    description:
    - The unique user-defined name for this route.
    required: true
    type: str

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

next_hop:
    description:
    - The next hop that packets will be delivered to.
    type: str

destination:
    description:
    - The destination of the route. Must not overlap with destinations for existing user-defined
      routes within the VPC.
    type: str