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 mode: global
login_unix_socket: /var/run/mysqld/mysqld.sock 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: community.mysql.mysql_db:
state: import state: import
name: zabbix name: zabbix
encoding: utf8mb4 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 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: community.mysql.mysql_variables:
variable: log_bin_trust_function_creators variable: log_bin_trust_function_creators
value: 0 value: 0
mode: global mode: global
login_unix_socket: /var/run/mysqld/mysqld.sock login_unix_socket: /var/run/mysqld/mysqld.sock
- name: 9. Lancer le service zabbix-server - name: 10. Lancer le service zabbix-server
service: service:
name: zabbix-server name: zabbix-server
state: restarted state: restarted
enabled: yes enabled: yes
- name: 10. Lancer le service zabbix-agent - name: 11. Lancer le service zabbix-agent
service: service:
name: zabbix-agent name: zabbix-agent
state: restarted state: restarted
enabled: yes enabled: yes
- name: 11. Lancer le service apache2 - name: 12. Lancer le service apache2
service: service:
name: apache2 name: apache2
state: restarted state: restarted