goldyfruit / goldyfruit.ibmcloud_automation / 1.0.4 / module / ic_is_key Manage VPC SSH keys on IBM Cloud. | "added in version" 2.9 of goldyfruit.ibmcloud_automation" Authors: Gaëtan Trellu (@goldyfruit) preview | supported by communitygoldyfruit.ibmcloud_automation.ic_is_key (1.0.4) — module
Install with ansible-galaxy collection install goldyfruit.ibmcloud_automation:==1.0.4
collections: - name: goldyfruit.ibmcloud_automation version: 1.0.4
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.
- name: Create SSH key ic_is_key: key: ibmcloud-key-baby public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQChXZYzE545Uc5PU...
- name: Delete SSH key ic_is_key: key: ibmcloud-key-baby state: absent
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