goldyfruit / goldyfruit.ibmcloud_automation / 1.0.4 / module / ic_iam_role Manage IAM roles on IBM Cloud. | "added in version" 2.9 of goldyfruit.ibmcloud_automation" Authors: Gaëtan Trellu (@goldyfruit) preview | supported by communitygoldyfruit.ibmcloud_automation.ic_iam_role (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
A role is a collection of actions that can be taken on a resource. There are platform (system), service, and custom roles.
- 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
- name: Delete role ic_iam_role: role: Ibmcloud-role-baby state: absent
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