ansible.builtin.icinga2_feature (v2.9.27) — module

Manage Icinga2 feature

| "added in version" 2.3 of ansible.builtin"

Authors: Loic Blot (@nerzhul)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

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
  icinga2_feature:
    name: ido-pgsql
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Disable api feature
  icinga2_feature:
    name: api
    state: absent

Inputs

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

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.