goldyfruit.ibmcloud_automation.ic_is_image (1.0.4) — module

Manage VPC VSI images 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 image from an image prototype object. The prototype object is structured in the same way as a retrieved image, and contains the information necessary to create the new image.

A URL to the image file on object storage must be provided.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create an image based on COS object
  ic_is_image:
    image: ibmcloud-image-baby
    file: cos://us-south/ibmcloud-bucket-baby/CentOS-8.1.1911.x86_64.qcow2
    operating_system: centos-7-amd64
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete an image
  ic_is_image:
    image: ibmcloud-image-baby
    state: absent

Inputs

    
file:
    description:
    - The file from which to create the image.
    type: str

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

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

source_volume:
    description:
    - The volume from which to create the image.
    type: str

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

operating_system:
    description:
    - The unique name of the operating system.
    type: str