goldyfruit.ibmcloud_automation.ic_is_key (1.0.4) — module

Manage VPC SSH keys 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

The prototype object is structured in the same way as a retrieved key, and contains the information necessary to create the new key. The public key value must be provided.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create SSH key
  ic_is_key:
    key: ibmcloud-key-baby
    public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQChXZYzE545Uc5PU...
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete SSH key
  ic_is_key:
    key: ibmcloud-key-baby
    state: absent

Inputs

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

type:
    choices:
    - rsa
    default: rsa
    description:
    - The cryptosystem used by this key

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

public_key:
    description:
    - A unique public SSH key to import, encoded in PEM format. The key (prior to encoding)
      must be either 2048 or 4096 bits long.
    type: str

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