bodsch.icinga.icinga2_features (1.1.0) — module

Manage multiple Icinga2 features at once

Authors: Bodo Schulz <bodo@boone-schulz.de> (@schulzbo)

Install collection

Install with ansible-galaxy collection install bodsch.icinga:==1.1.0


Add to requirements.yml

  collections:
    - name: bodsch.icinga
      version: 1.1.0

Description

This module can be used to enable or disable more than on Icinga2 feature.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Enable ido-pgsql feature
  icinga2_features:
    feature:
      - ido-pgsql
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Disable more features
  icinga2_features:
    feature:
      - perfdata
      - notification
      - livestatus
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Disable api feature
  icinga2_features:
    feature:
      - api
    state: absent

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - If set to C(present) and feature is disabled, then feature is enabled.
    - If set to C(present) and feature is already enabled, then nothing is changed.
    - If set to C(absent) and feature is enabled, then feature is disabled.
    - If set to C(absent) and feature is already disabled, then nothing is changed.
    type: str

features:
    description:
    - This list conatins the feature names to enable or disable.
    required: true
    type: list