diff --git a/roles/icinga2_server/README.md b/roles/icinga2_server/README.md index cec2ec1..200440f 100644 --- a/roles/icinga2_server/README.md +++ b/roles/icinga2_server/README.md @@ -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 diff --git a/roles/icinga2_server/meta/main.yml b/roles/icinga2_server/meta/main.yml new file mode 100644 index 0000000..e86da1d --- /dev/null +++ b/roles/icinga2_server/meta/main.yml @@ -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: [] diff --git a/roles/icinga2_server/tasks/main.yml b/roles/icinga2_server/tasks/main.yml index f2037cb..197f462 100644 --- a/roles/icinga2_server/tasks/main.yml +++ b/roles/icinga2_server/tasks/main.yml @@ -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