mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-10-31 10:51:27 +01:00 
			
		
		
		
	Update to 2022-04-04 14:00
This commit is contained in:
		| @@ -21,3 +21,10 @@ | ||||
|   notify: restart zabbix-proxy | ||||
|   register: zabbix_proxy_rpm | ||||
|   tags: zabbix | ||||
|  | ||||
| - name: Install backup hooks | ||||
|   template: src={{ item }}-backup.j2 dest=/etc/backup/{{ item }}.d/zabbix_proxy.sh mode=755 | ||||
|   loop: | ||||
|     - pre | ||||
|     - post | ||||
|   tags: zabbix | ||||
|   | ||||
							
								
								
									
										5
									
								
								roles/zabbix_proxy/templates/post-backup.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								roles/zabbix_proxy/templates/post-backup.j2
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| set -eo pipefail | ||||
|  | ||||
| rm -f /home/lbkp/zabbix/proxy.sql.zst | ||||
							
								
								
									
										6
									
								
								roles/zabbix_proxy/templates/pre-backup.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								roles/zabbix_proxy/templates/pre-backup.j2
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| set -eo pipefail | ||||
|  | ||||
| mkdir -p /home/lbkp/zabbix/ | ||||
| sqlite3 /var/lib/zabbix/db/proxy.sqlite .dump | zstd -c > /home/lbkp/zabbix/proxy.sql.zst | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Berteaud
					Daniel Berteaud