update from main

This commit is contained in:
muppeth 2023-10-27 11:56:57 +02:00
parent 0e5982e398
commit 4a44b2898d
Signed by: muppeth
GPG Key ID: 0EBC7B9848D04031
3 changed files with 8 additions and 21 deletions

View File

@ -18,4 +18,4 @@
- name: restart nginx
systemd:
name: nginx
state: reloaded
state: restarted

View File

@ -2,7 +2,7 @@
- name: '[Server] - Install Zabbix from repository'
apt:
pkg: "{{ zabbix_server_apt }}"
pkg: "{{ zabbix_server_pkg }}"
state: latest
update_cache: yes
install_recommends: no
@ -10,17 +10,12 @@
notify:
- restart zabbix_server
- name: "[Agent] - Make sure the service is enabled"
systemd:
name: zabbix-server
enabled: yes
- name: '[Server] - Remove apache2'
apt:
name: "{{ zabbix_apache }}"
state: absent
- name: "[Check] - Zabbix is already installed?"
- name: "[Server] - Check if Zabbix is already installed"
shell:
cmd: "{{ zabbix_server_db_plugin }} -h {{ zabbix_server_db_host }} -u {{ zabbix_server_db_user }} -p{{ zabbix_server_db_passwd }} {{ zabbix_server_db_name }} -se 'SELECT instanceid from config;'"
register: zabbix_installed
@ -38,9 +33,9 @@
# ERROR 1146 means the table doesn't exist
notify:
- restart zabbix_server
- restart nginx
- name: "[Server] - Remove default nginx vhost"
file:
path: '/etc/nginx/sites-enabled/default'
state: 'absent'
notify: restart nginx
- name: "[Server] - Make sure the service is enabled"
systemd:
name: zabbix-server
enabled: yes

View File

@ -59,18 +59,10 @@ UserParameter=lufi[*],cat /tmp/lufi_stats | grep $1 | cut -d' ' -f2-
# PrivateBin
UserParameter=privatebin[*],cat /tmp/bin_stats | grep $1 | cut -d' ' -f2-
{% endif %}
{% if item.name == 'framadate' %}
# Framadate
UserParameter=framadate[*],cat /tmp/framadate_stats | grep $1 | cut -d' ' -f2-
{% endif %}
{% if item.name == 'etherpad' %}
# Etherpad
UserParameter=etherpad[*],cat /tmp/pad_stats | grep $1 | cut -d' ' -f2-
{% endif %}
{% if item.name == 'ethercalc' %}
# Ethercalc
UserParameter=ethercalc[*],cat /tmp/ethercalc_stats | grep $1 | cut -d' ' -f2-
{% endif %}
{% if item.name == 'mariadb' %}
# Mariadb
UserParameter=mysql.ping[*], mysqladmin -h"$1" -P"$2" ping