community.general.icinga2_feature (8.5.0) — module

Manage Icinga2 feature

Authors: Loic Blot (@nerzhul)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

This module can be used to enable or disable an Icinga2 feature.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Enable ido-pgsql feature
  community.general.icinga2_feature:
    name: ido-pgsql
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Disable api feature
  community.general.icinga2_feature:
    name: api
    state: absent

Inputs

    
name:
    description:
    - This is the feature name to enable or disable.
    required: true
    type: str

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