maj zabbix-srv
This commit is contained in:
parent
a1442e534d
commit
a1ee9c6207
@ -29,19 +29,27 @@
|
||||
name: mariadb
|
||||
state: started
|
||||
|
||||
- name: 6. Modifier la variable trust function creators pour importer la base données
|
||||
- name: 6. Creer un utilisateur et lui attribuer tous les droits
|
||||
community.mysql.mysql_user:
|
||||
name: zabbix
|
||||
password: password
|
||||
priv: '*.*:ALL,GRANT'
|
||||
state: present
|
||||
login_unix_socket: /var/run/mysqld/mysqld.sock
|
||||
|
||||
- name: 7. Modifier la variable trust function creators pour importer la base données
|
||||
community.mysql.mysql_variables:
|
||||
variable: log_bin_trust_function_creators
|
||||
value: 1
|
||||
mode: global
|
||||
login_unix_socket: /var/run/mysqld/mysqld.sock
|
||||
|
||||
- name: 7. Récupérer la base de données
|
||||
- name: 8. 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
|
||||
- name: 9. Importer la base de données
|
||||
community.mysql.mysql_db:
|
||||
state: import
|
||||
name: zabbix
|
||||
@ -49,26 +57,26 @@
|
||||
target: /tmp/zabbix.sql.gz
|
||||
login_unix_socket: /var/run/mysqld/mysqld.sock
|
||||
|
||||
- name: 9. Remettre a zero la variable trust function creators
|
||||
- name: 10. 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: 10. Lancer le service zabbix-server
|
||||
- name: 11. Lancer le service zabbix-server
|
||||
service:
|
||||
name: zabbix-server
|
||||
state: restarted
|
||||
enabled: yes
|
||||
|
||||
- name: 11. Lancer le service zabbix-agent
|
||||
- name: 12. Lancer le service zabbix-agent
|
||||
service:
|
||||
name: zabbix-agent
|
||||
state: restarted
|
||||
enabled: yes
|
||||
|
||||
- name: 12. Lancer le service apache2
|
||||
- name: 13. Lancer le service apache2
|
||||
service:
|
||||
name: apache2
|
||||
state: restarted
|
||||
|
Loading…
x
Reference in New Issue
Block a user