mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
AWStats + Calibre-Web + Gitea + Kiwix + Munix W/O Apache
This commit is contained in:
parent
654bff5bbe
commit
1dfd80af19
24 changed files with 69 additions and 132 deletions
|
@ -1,37 +1,25 @@
|
|||
- name: "Install 5 packages: munin, munin-node, munin-plugins-extra, libcgi-fast-perl, libapache2-mod-fcgid (debuntu)"
|
||||
- name: "Install 5 packages: munin, munin-node, munin-plugins-extra, libcgi-fast-perl"
|
||||
package:
|
||||
name:
|
||||
- munin
|
||||
- munin-node
|
||||
- munin-plugins-extra
|
||||
- libcgi-fast-perl
|
||||
# - libapache2-mod-fcgid
|
||||
#- libapache2-mod-fcgid
|
||||
state: present
|
||||
when: is_debuntu
|
||||
|
||||
- name: "Install 2 packages: munin, munin-node (OS's other than debuntu)"
|
||||
package:
|
||||
name:
|
||||
- munin
|
||||
- munin-node
|
||||
state: present
|
||||
when: not is_debuntu
|
||||
|
||||
#- name: 'Install from template: /etc/munin/munin.conf'
|
||||
# template:
|
||||
# src: munin.conf.j2
|
||||
# dest: /etc/munin/munin.conf
|
||||
|
||||
- name: 'Install from template: /etc/{{ apache_conf_dir }}/munin24.conf'
|
||||
template:
|
||||
src: munin24.conf.j2
|
||||
dest: "/etc/{{ apache_conf_dir }}/munin24.conf" # apache2/sites-available
|
||||
when: apache_installed is defined
|
||||
# - name: "Install 2 packages: munin, munin-node (OS's other than debuntu)"
|
||||
# package:
|
||||
# name:
|
||||
# - munin
|
||||
# - munin-node
|
||||
# state: present
|
||||
# when: not is_debuntu
|
||||
|
||||
- name: Establish username/password Admin/changeme in /etc/munin/munin-htpasswd
|
||||
htpasswd:
|
||||
path: /etc/munin/munin-htpasswd
|
||||
name: "{{ munin_username}}" # Admin
|
||||
name: "{{ munin_username}}" # Admin
|
||||
password: "{{ munin_password }}" # changeme
|
||||
|
||||
- name: If MySQL is enabled, let Munin monitor it
|
||||
|
|
|
@ -39,13 +39,8 @@
|
|||
state: stopped
|
||||
when: not munin_enabled
|
||||
|
||||
- name: Enable/Disable/Restart Apache if primary
|
||||
include_tasks: apache.yml
|
||||
when: not nginx_enabled
|
||||
|
||||
- name: Enable/Disable/Restart NGINX if primary
|
||||
- name: Enable/Disable/Restart NGINX
|
||||
include_tasks: nginx.yml
|
||||
when: nginx_enabled
|
||||
|
||||
|
||||
- name: Add 'munin' variable values to {{ iiab_ini_file }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue