Skip to content

Commit

Permalink
backup+backup2: minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Jul 7, 2024
1 parent 1d81bb5 commit fa61827
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/backup/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@

- name: Delete excess backups
ansible.builtin.shell: >
rclone purge {{ backup.rclone.destination }}/archived/{{ item if item | length > 0 else 'non-existant-folder-name' }}{{ (' ' + backup_cleanup_custom_rclone_flags) if backup_cleanup_custom_rclone_flags | length > 0 else '' }}
rclone purge {{ backup.rclone.destination }}/archived/{{ item if (item | length > 0) else 'non-existent-folder-name' }}{{ (' ' + backup_cleanup_custom_rclone_flags) if backup_cleanup_custom_rclone_flags | length > 0 else '' }}
loop: "{{ backup_list.stdout_lines[: (excess_backups | int)] }}"
when:
- excess_backups is defined
Expand Down
2 changes: 1 addition & 1 deletion roles/backup2/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@

- name: Delete excess backups
ansible.builtin.shell: >
rclone purge {{ backup.rclone.destination }}/archived/{{ item if item | length > 0 else 'non-existant-folder-name' }}{{ (' ' + backup2_cleanup_custom_rclone_flags) if backup2_cleanup_custom_rclone_flags | length > 0 else '' }}
rclone purge {{ backup.rclone.destination }}/archived/{{ item if (item | length > 0) else 'non-existent-folder-name' }}{{ (' ' + backup2_cleanup_custom_rclone_flags) if backup2_cleanup_custom_rclone_flags | length > 0 else '' }}
loop: "{{ backup_list.stdout_lines[: (excess_backups | int)] }}"
when:
- excess_backups is defined
Expand Down

0 comments on commit fa61827

Please sign in to comment.