theforeman.foreman.foreman_scc_account (0.8.1) — module

Manage Foreman SccAccount

Authors: Manisha Singhal (@manisha15) ATIX AG

preview | supported by community

Install collection

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


Add to requirements.yml

  collections:
    - name: theforeman.foreman
      version: 0.8.1

Description

Manage Foreman Suse Customer Center Account Entities

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"
  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"
  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"
  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
    required: true
    type: str

username:
    description: Username accessing the Foreman server
    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
    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:
    aliases:
    - verify_ssl
    default: true
    description: Whether or not to verify the TLS certificates of the Foreman server
    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