theforeman.foreman.scc_account (4.0.0) — module

Manage SUSE Customer Center Accounts

| "added in version" 1.0.0 of theforeman.foreman"

Authors: Manisha Singhal (@manisha15) ATIX AG

Install collection

Install with ansible-galaxy collection install theforeman.foreman:==4.0.0


Add to requirements.yml

  collections:
    - name: theforeman.foreman
      version: 4.0.0

Description

Manage SUSE Customer Center Accounts

This module requires the foreman_scc_manager plugin set up in the server

See U(https://github.com/ATIX-AG/foreman_scc_manager)


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Create a suse customer center account"
  theforeman.foreman.scc_account:
    username: "admin"
    password: "changeme"
    server_url: "https://foreman.example.com"
    name: "Test"
    login: "abcde"
    scc_account_password: "12345"
    base_url: "https://scc.suse.com"
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Update a suse customer center account"
  theforeman.foreman.scc_account:
    username: "admin"
    password: "changeme"
    server_url: "https://foreman.example.com"
    name: "Test1"
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Delete a suse customer center account"
  theforeman.foreman.scc_account:
    username: "admin"
    password: "changeme"
    server_url: "https://foreman.example.com"
    name: "Test"
    state: absent

Inputs

    
name:
    description: Name of the suse customer center account
    required: true
    type: str

login:
    description: Login id of suse customer center account
    required: false
    type: str

state:
    choices:
    - present
    - absent
    - synced
    default: present
    description: State of the suse customer center account
    type: str

base_url:
    description: URL of SUSE for suse customer center account
    required: false
    type: str

interval:
    choices:
    - never
    - daily
    - weekly
    - monthly
    description: Interval for syncing suse customer center account
    required: false
    type: str

password:
    description:
    - Password of the user accessing the Foreman server.
    - If the value is not specified in the task, the value of environment variable C(FOREMAN_PASSWORD)
      will be used instead.
    required: true
    type: str

username:
    description:
    - Username accessing the Foreman server.
    - If the value is not specified in the task, the value of environment variable C(FOREMAN_USERNAME)
      will be used instead.
    required: true
    type: str

sync_date:
    description: Last Sync time of suse customer center account
    required: false
    type: str

server_url:
    description:
    - URL of the Foreman server.
    - If the value is not specified in the task, the value of environment variable C(FOREMAN_SERVER_URL)
      will be used instead.
    required: true
    type: str

organization:
    description: Name of related organization
    required: true
    type: str

updated_name:
    description: Name to be updated of suse customer center account
    type: str

validate_certs:
    default: true
    description:
    - Whether or not to verify the TLS certificates of the Foreman server.
    - If the value is not specified in the task, the value of environment variable C(FOREMAN_VALIDATE_CERTS)
      will be used instead.
    type: bool

test_connection:
    default: false
    description: Test suse customer center account credentials that connects to the server
    required: false
    type: bool

scc_account_password:
    description: Password of suse customer center account
    required: false
    type: str

Outputs

entity:
  contains:
    scc_accounts:
      description: List of scc accounts.
      elements: dict
      type: list
  description: Final state of the affected entities grouped by their type.
  returned: success
  type: dict