Add (manual) recovery scripts
This commit is contained in:
		
							parent
							
								
									a2c680f3e8
								
							
						
					
					
						commit
						4f97b66c3d
					
				
					 4 changed files with 48 additions and 1 deletions
				
			
		|  | @ -31,6 +31,8 @@ | |||
| 
 | ||||
|     - name: Import tasks specific to the hooks scripts | ||||
|       ansible.builtin.import_tasks: hooks.yml | ||||
|     - name: Import tasks specific to the recovery scripts | ||||
|       ansible.builtin.import_tasks: recovery.yml | ||||
|     - name: Import tasks specific to systemd | ||||
|       ansible.builtin.import_tasks: systemd.yml | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										13
									
								
								playbooks/roles/backup/tasks/recovery.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								playbooks/roles/backup/tasks/recovery.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| - name: Set recovery path | ||||
|   ansible.builtin.set_fact: | ||||
|     recovery_path: "{{ (service_path, 'recovery') | path_join }}" | ||||
| - name: Create recovery directory | ||||
|   ansible.builtin.file: | ||||
|     path: "{{ recovery_path }}" | ||||
|     state: directory | ||||
|     mode: "0755" | ||||
| - name: Copy the recovery | ||||
|   ansible.builtin.copy: | ||||
|     src: recovery/ | ||||
|     dest: "{{ recovery_path }}" | ||||
|     mode: "0755" | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue