menandmice.ansible_micetro.role (1.0.7) — module

Manage roles on the Micetro

| "added in version" 2.7 of menandmice.ansible_micetro"

Authors: Ton Kersten <t.kersten@atcomputing.nl> for Men&Mice

Install collection

Install with ansible-galaxy collection install menandmice.ansible_micetro:==1.0.7


Add to requirements.yml

  collections:
    - name: menandmice.ansible_micetro
      version: 1.0.7

Description

Manage roles on a Micetro installation

Inputs

    
name:
    aliases:
    - role
    description:
    - Name of the role to create, remove or modify.
    required: true
    type: str

descr:
    description: Description of the role.
    required: false
    type: str

state:
    choices:
    - absent
    - present
    default: present
    description:
    - Should the role exist or not.
    required: false
    type: str

users:
    description: List of users to add to this role.
    required: false
    type: list

groups:
    description: List of groups to add to this role.
    required: false
    type: list

mm_provider:
    description: Definition of the Micetro API mm_provider.
    required: true
    suboptions:
      mm_password:
        description: password to login with into the API.
        no_log: true
        required: true
        type: str
      mm_url:
        description: Men&Mice API server to connect to.
        required: true
        type: str
      mm_user:
        description: userid to login with into the API.
        required: true
        type: str
    type: dict

Outputs

message:
  description: The output message from the Micetro.
  returned: always
  type: str