Ajout tâches et variables.

This commit is contained in:
Gitouche 2023-03-05 23:10:44 +01:00
parent 108ae0904d
commit 06a819cc50
2 changed files with 16 additions and 0 deletions

10
defaults/main.yml Normal file
View file

@ -0,0 +1,10 @@
---
icinga2_version: 2.13.7
icinga_selinux_common_version: 1.0.0
icinga2_rpmfiles:
- https://git.garbaye.fr/api/packages/Garbaye/generic/icinga2/{{ icinga2_version }}/icinga2-{{ icinga2_version }}-1.el{{ ansible_distribution_major_version }}.{{ ansible_architecture }}.rpm
- https://git.garbaye.fr/api/packages/Garbaye/generic/icinga2/{{ icinga2_version }}/icinga2-bin-{{ icinga2_version }}-1.el{{ ansible_distribution_major_version }}.{{ ansible_architecture }}.rpm
- https://git.garbaye.fr/api/packages/Garbaye/generic/icinga2/{{ icinga2_version }}/icinga2-common-{{ icinga2_version }}-1.el{{ ansible_distribution_major_version }}.{{ ansible_architecture }}.rpm
- https://git.garbaye.fr/api/packages/Garbaye/generic/icinga2/{{ icinga2_version }}/icinga2-selinux-{{ icinga2_version }}-1.el{{ ansible_distribution_major_version }}.{{ ansible_architecture }}.rpm
- https://git.garbaye.fr/api/packages/Garbaye/generic/icinga-selinux-common/{{ icinga_selinux_common_version }}/icinga-selinux-common-{{ icinga_selinux_common_version }}-1.el{{ ansible_distribution_major_version }}.noarch.rpm

6
tasks/main.yml Normal file
View file

@ -0,0 +1,6 @@
---
- name: Install icinga2
yum:
name: "{{ icinga2_rpmfiles }}"
state: present
disable_gpg_check: yes