goldyfruit.ibmcloud_automation.ic_iam_role (1.0.4) — module

Manage IAM roles 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

A role is a collection of actions that can be taken on a resource. There are platform (system), service, and custom roles.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add role to only list buckets
  ic_iam_role:
    role: Ibmcloud-role-baby
    service_name: cloud-object-storage
    display_name: "List buckets"
    description: "Role to list COS buckets"
    actions:
      - cloud-object-storage.account.get_account_buckets
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete role
  ic_iam_role:
    role: Ibmcloud-role-baby
    state: absent

Inputs

    
role:
    description:
    - The name of the role.
    - First letter should start with an upper case.
    required: true
    type: str

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

actions:
    description:
    - The actions of the role.
    type: list

description:
    description:
    - The description of the role.
    type: str

display_name:
    description:
    - The display name of the role.
    type: str

service_name:
    description:
    - The service name.
    type: str