Ansible Role: Icinga 2

Build Status

This role installs Icinga 2 from the official package repositories on systems running Debian/Ubuntu and RHEL/CentOS.

Requirements

Root accesss is required for installing packages, so you must run it in a playbook with global root privileges or define become: yes when the role is included:

- hosts: icinga2_servers
  roles:
    - role: transitiv.icinga2
      become: yes

Note that the EPEL repository must be enabled on CentOS/RHEL and the backports repository is required on Debian Stretch.

Dependencies

This role has no dependencies.

Variables

icinga2_packages:
  - icinga2

Defines the package(s) installed by the role. This variable is "flattened" before it is used so it can contain nested lists if desired.

icinga2_service_state: started

Sets the state of the service whenever the role is invoked (refer to the state parameter of the service module for valid values).

icinga2_service_enabled: true

Defines whether Icinga 2 is started on boot.

License

This role is available under the terms of the MIT license.

Author

This role was created by Transitiv Technologes Ltd..