maj zabbix-srv

This commit is contained in:
root 2024-01-25 11:22:18 +01:00
parent d88745e741
commit 298f105805

View File

@ -36,34 +36,39 @@
mode: global
login_unix_socket: /var/run/mysqld/mysqld.sock
- name: 7. Importer la base de données
- name: 7. Récupérer la base de données
get_url:
url: http://s-adm.gsb.adm/gsbstore/zabbix.sql.gz
dest: /tmp
- name: 8. Importer la base de données
community.mysql.mysql_db:
state: import
name: zabbix
encoding: utf8mb4
target: http://s-adm.gsb.adm/gsbstore/zabbix.sql.gz
target: /tmp/zabbix.sql.gz
login_unix_socket: /var/run/mysqld/mysqld.sock
- name: 8. Remettre a zero la variable trust function creators
- name: 9. Remettre a zero la variable trust function creators
community.mysql.mysql_variables:
variable: log_bin_trust_function_creators
value: 0
mode: global
login_unix_socket: /var/run/mysqld/mysqld.sock
- name: 9. Lancer le service zabbix-server
- name: 10. Lancer le service zabbix-server
service:
name: zabbix-server
state: restarted
enabled: yes
- name: 10. Lancer le service zabbix-agent
- name: 11. Lancer le service zabbix-agent
service:
name: zabbix-agent
state: restarted
enabled: yes
- name: 11. Lancer le service apache2
- name: 12. Lancer le service apache2
service:
name: apache2
state: restarted