tribe29.checkmk.tag_group (0.23.0) — module

Manage tag_group within Checkmk

| "added in version" 0.11.0 of tribe29.checkmk"

Authors: Stefan Mühling (@muehlings)

Install collection

Install with ansible-galaxy collection install tribe29.checkmk:==0.23.0


Add to requirements.yml

  collections:
    - name: tribe29.checkmk
      version: 0.23.0

Description

Manage tag_group within Checkmk.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Create tag_group"
  tribe29.checkmk.tag_group:
    server_url: "https://localhost/"
    site: "my_site"
    automation_user: "automation"
    automation_secret: "$SECRET"
    id: Virtualization
    title: Virtualization
    topic: My_Tags
    choices:
        - id: No_Virtualization
          title: No Virtualization
        - id: ESXi
          title: ESXi
        - id: vCenter
          title: vCenter
        - id: HyperV
          title: HyperV
        - id: KVM
          title: KVM
  state: present

Inputs

    
id:
    default: ''
    description: The id of the tag_group to be created/ modified/deleted.
    type: str

site:
    description: The site you want to connect to.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description: The desired state
    type: str

title:
    default: ''
    description: The title of the tag_group
    type: str

topic:
    default: ''
    description: The topic of the tag_group
    type: str

choices:
    default: []
    description: The list of the tags for the tag_group as dicts.
    elements: dict
    type: list

server_url:
    description: The base url of your Checkmk server.
    required: true
    type: str

validate_certs:
    default: true
    description: Whether to validate the SSL certificate of the Checkmk server.
    type: bool

automation_user:
    description: The automation user you want to use. It has to be an 'Automation' user,
      not a normal one.
    required: true
    type: str

automation_secret:
    description: The secret to authenticate your automation user.
    required: true
    type: str

Outputs

http_code:
  description: The HTTP code the Checkmk API returns.
  returned: always
  sample: '200'
  type: int
message:
  description: The output message that the module generates.
  returned: always
  sample: OK
  type: str