redhatinsights / redhatinsights.subscriptions / 1.0.4 / module / cloud_provider_account Manages an RHSM Cloud Access provider account Authors: Patrick Easters (@patrickeasters)redhatinsights.subscriptions.cloud_provider_account (1.0.4) — module
Install with ansible-galaxy collection install redhatinsights.subscriptions:==1.0.4
collections: - name: redhatinsights.subscriptions version: 1.0.4
This module will ensure a cloud provider account exists in RHSM and optionally verifies it for use with auto registration.
- name: Create a cloud provider account redhatinsights.subscriptions.cloud_provider_account: provider: AWS id: 123456789012 nickname: my pretty neat aws account refresh_token: aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1kUXc0dzlXZ1hjUQo=
- name: Delete a provider account redhatinsights.subscriptions.cloud_provider_account: provider: MSAZ id: c11d7e74-adb4-4ce3-9a07-93c7a6f88cdf state: absent refresh_token: aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1kUXc0dzlXZ1hjUQo=
- name: Verify an account for use with auto registration redhatinsights.subscriptions.cloud_provider_account: provider: AWS id: 123456789012 verification_identity: aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1XYWFBTmxsOGgxOAo= verification_signature: aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1pblhDX2xhYi0zNAo= refresh_token: aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1kUXc0dzlXZ1hjUQo=
id: description: - Account ID of the cloud provider account required: true type: str state: choices: - present - absent default: present description: - Add or remove a cloud provider account type: str nickname: description: - Nickname or short description of the cloud provider account type: str provider: choices: - AWS - MSAZ - GCP description: - Short Name of the cloud provider required: true type: str refresh_token: description: - Offline refresh token for authentication with Red Hat APIs - Tokens can be generated at https://access.redhat.com/management/api required: true type: str refresh_token_client: default: rhsm-api description: - Client ID used to generate the refresh token - Typically 'rhsm-api' for tokens generated at access.redhat.com and 'cloud-services' for cloud.redhat.com type: str verification_identity: description: - Cloud VM instance identity document - Only needed to verify a cloud provider account for use with RHSM auto registration type: str verification_signature: description: - Cloud VM instance identity signature - Only needed to verify a cloud provider account for use with RHSM auto registration type: str