Update Icinga2 server role

This commit is contained in:
Nemo 2020-10-03 15:43:09 +02:00
parent 9fc4b7d682
commit a80ec0506f
3 changed files with 33 additions and 17 deletions

View File

@ -1,7 +1,7 @@
Ansible Role: icinga2_server
=========
This role deploys as208585 webfiles on a GNU/Linux server.
This role deploys Icinga2, MariaDB and Icingaweb2 on a GNU/Linux server.
Requirements
------------
@ -11,14 +11,7 @@ None.
Role Variables
--------------
All variables and default values are defined in `defaults/main.yml` :
# Files location for as208585.net website
website_location: "/var/www/html/as208585.net"
# Web user
website_user: "www-data"
website_group: "www-data"
All variables and default values are defined in `defaults/main.yml`
Dependencies
------------
@ -28,7 +21,7 @@ None.
Example Playbook
----------------
- hosts: web_server
- hosts: icinga2_server
roles:
- icinga2_server

View File

@ -0,0 +1,23 @@
galaxy_info:
author: nemo
description: Icinga2, MariaDB and Icingaweb2 for GNU/Linux.
company: Wirebrass
license: license (BSD)
min_ansible_version: 2.4
platforms:
- name: Debian
versions:
- stretch
- buster
galaxy_tags:
- icinga2
- icingaweb2
- mariadb
- nagios
- monitoring
dependencies: []

View File

@ -2,11 +2,11 @@
- name: Include OS-specific variables.
include_vars: "{{ ansible_os_family }}.yml"
#- import_tasks: repository.yml
#- import_tasks: install_icinga2.yml
#- import_tasks: install_mariadb.yml
#- import_tasks: install_ido.yml
#- import_tasks: configure_icinga2_api_feature.yml
#- import_tasks: install_icingaweb2.yml
#- import_tasks: configure_icingaweb2.yml
- import_tasks: repository.yml
- import_tasks: install_icinga2.yml
- import_tasks: install_mariadb.yml
- import_tasks: install_ido.yml
- import_tasks: configure_icinga2_api_feature.yml
- import_tasks: install_icingaweb2.yml
- import_tasks: configure_icingaweb2.yml
- import_tasks: postconfigure_icinga2.yml