Commit f034336d authored by aflatto's avatar aflatto Committed by GitHub

Merge pull request #48 from jporven/master

make the Web Server a configurable parameter 
parents b71bcf55 8a4831be
......@@ -68,13 +68,17 @@
owner=nagios
group=nagios
mode=0640
- name: Define web server daemon package.
set_fact:
web_server_daemon: "{{ __web_server_daemon_deb }}"
when: web_server_daemon is not defined
- name: Restart HTTPD and Icinga2 to Apply the Configuration
- name: Restart {{web_server_daemon}} and Icinga2 to Apply the Configuration
service: name={{ item }}
state=restarted
enabled=yes
with_items:
- apache2
- "{{web_server_daemon}}"
- icinga2
- name: Add user www-data to group icingaweb2
......
......@@ -83,12 +83,17 @@
group=icinga
mode=0640
- name: Restart HTTPD and Icinga2 to Apply the Configuration
- name: Define web server daemon package.
set_fact:
web_server_daemon: "{{ __web_server_daemon_rh }}"
when: web_server_daemon is not defined
- name: Restart {{ web_server_daemon }} and Icinga2 to Apply the Configuration
service: name={{ item }}
state=restarted
enabled=yes
with_items:
- httpd
- "{{ web_server_daemon }}"
- icinga2
- name: Icinga Web2 Installation finished (RH)
......
---
# vars file for icinga2-ansible-web2-ui
__web_server_daemon_deb: apache2
__web_server_daemon_rh: httpd
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment