cybus.connectware.user (2.2.2) — module

Manages Connectware Users

Authors: Jan Erichsen (@NotoriousBIT)

Install collection

Install with ansible-galaxy collection install cybus.connectware:==2.2.2


Add to requirements.yml

  collections:
    - name: cybus.connectware
      version: 2.2.2

Description

Create, manage and delete Connectware Users


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: User present
  cybus.connectware.user:
    name: foo
    password: password
    permissions:
      - context: mqtt
        operation: readWrite
        resource: '#'
      - context: http
        operation: readWrite
        resource: '#'
    roles:
      - connectware-admin
      - minimum-access
    mqtt_publish_prefix: senders/foo

Inputs

    
name:
    description:
    - The username
    required: true
    type: str

roles:
    default: []
    description:
    - A list of existing roles
    elements: str
    type: list

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Target state for Connectware User
    type: str

password:
    description:
    - The users password
    type: str

admin_user:
    default: admin
    description:
    - Admin username
    type: str

api_timeout:
    default: 30
    description:
    - Timeout for API calls
    type: int

grant_types:
    choices:
    - password
    - token
    - certificate
    default:
    - password
    - token
    description:
    - List of supported grant types
    elements: str
    type: list

permissions:
    default: []
    description:
    - A list of permissions
    elements: dict
    type: list

admin_password:
    default: admin
    description:
    - Admin password
    type: str

check_password:
    default: true
    description:
    - Flag to disable user password checking
    type: bool

validate_certs:
    default: false
    description:
    - Flag to enable Connectware certificate checking
    type: bool

target_hostname:
    default: localhost
    description:
    - Used to connect to the Connectware API
    type: str

mqtt_publish_prefix:
    description:
    - Prepended to every MQTT topic that the user publishes on
    type: str