Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Epel package managing (#41)
Browse files Browse the repository at this point in the history
* changed manage switch to i2_manage_epel

* added i2_manage_epel variable to defaults

* added documentation for variable i2_manage_epel
  • Loading branch information
mkayontour authored and aflatto committed Nov 10, 2019
1 parent 4600ea9 commit 7316547
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Ansible role to install and configure [Icinga 2](https://www.icinga.com/products/icinga-2/).

# This Role is in development stage
# This Role is in development stage

## Setup

Expand Down Expand Up @@ -52,6 +52,7 @@ You may choose to use your own or the systems default repositories. Repository m
- [**Variables**](#variables)
- [Variable: i2_manage_repository](#variable-i2_manage_repository)
- [Variable: i2_manage_package](#variable-i2_manage_package)
- [Variable: i2_manage_package](#variable-i2_manage_epel)
- [Variable: i2_manage_service](#variable-i2_manage_service)
- [Variable: i2_apt_key](#variable-i2_apt_key)
- [Variable: i2_apt_url](#variable-i2_apt_url)
Expand All @@ -77,6 +78,9 @@ Whether to add the official [Icinga Repository](https://packages.icinga.com/) to
#### Variable: `i2_manage_package`
Whether to install packages or not. Defaults to `true`.

#### Variable: `i2_manage_epel`
Whether to install the EPEL release package. Defaults to `true`.

#### Variable: `i2_manage_service`
Whether to start, restart and reload the Icinga 2 on changes or not. Defaults to `true`.

Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ i2_yum_key: "https://packages.icinga.com/icinga.key"
i2_yum_url: "http://packages.icinga.com/epel/$releasever/release/"
i2_manage_package: true
i2_manage_service: true
i2_manage_epel: true
i2_remove_unmanaged_features: false
i2_confd:
- "conf.d"
Expand Down
4 changes: 2 additions & 2 deletions tasks/icinga2-RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
when: i2_manage_repository

- name: RedHat - Ensure EPEL is enabled
become: True
become: yes
yum:
name: epel-release
state: present
when: i2_manage_package
when: i2_manage_epel

- name: RedHat - Ensure icinga2 is installed
become: yes
Expand Down

0 comments on commit 7316547

Please sign in to comment.