mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	Setup cleanup-backups variable bug
This commit is contained in:
		| @@ -6,9 +6,9 @@ | ||||
|     state: present | ||||
|   when: run_once_cleanup_backups_service is not defined | ||||
|  | ||||
| - name: "create {{docker_cleanup_backups}}" | ||||
| - name: "create {{cleanup_backups_directory}}" | ||||
|   file: | ||||
|     path: "{{docker_cleanup_backups}}" | ||||
|     path: "{{cleanup_backups_directory}}" | ||||
|     state: directory | ||||
|     mode: 0755 | ||||
|   when: run_once_cleanup_backups_service is not defined | ||||
| @@ -16,7 +16,7 @@ | ||||
| - name: create cleanup-backups.py | ||||
|   copy:  | ||||
|     src:  "cleanup-backups.py" | ||||
|     dest: "{{docker_cleanup_backups}}cleanup-backups.py" | ||||
|     dest: "{{cleanup_backups_directory}}cleanup-backups.py" | ||||
|   when: run_once_cleanup_backups_service is not defined | ||||
|  | ||||
| - name: create cleanup-backups.cymais.service | ||||
|   | ||||
| @@ -5,4 +5,4 @@ OnFailure=systemd-notifier.cymais@%n.service | ||||
| [Service] | ||||
| Type=oneshot | ||||
| ExecStartPre=/bin/sh -c '/usr/bin/python {{ path_system_lock_script }} {{ system_maintenance_services | join(' ')  }} --ignore {{system_maintenance_cleanup_services| join(' ') }} --timeout "{{system_maintenance_lock_timeout_backup_services}}"' | ||||
| ExecStart=/bin/sh -c '/usr/bin/python {{docker_cleanup_backups}}cleanup-backups.py --backups-folder-path {{backups_folder_path}} --maximum-backup-size-percent {{size_percent_maximum_backup}}' | ||||
| ExecStart=/bin/sh -c '/usr/bin/python {{cleanup_backups_directory}}cleanup-backups.py --backups-folder-path {{backups_folder_path}} --maximum-backup-size-percent {{size_percent_maximum_backup}}' | ||||
							
								
								
									
										1
									
								
								roles/cleanup-backups-service/vars/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								roles/cleanup-backups-service/vars/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| cleanup_backups_directory: "{{path_administrator_scripts}}cleanup-backups/" | ||||
		Reference in New Issue
	
	Block a user