Skip to content

Commit d7f6838

Browse files
committed
feat(backup): remove metadata file creation
task is way too slow so it's being removed until it can be sped up. !76
1 parent d156dd4 commit d7f6838

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

tasks/backup/metadata.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,29 @@
55
metadata: []
66

77

8-
- name: Fetch File List
9-
ansible.builtin.command:
10-
cmd: bash -c find . *
11-
chdir: "{{ directory_temp_destination }}"
12-
changed_when: false
13-
register: files_backup
14-
become: true
15-
no_log: true # Don't log the files found. not required
8+
# - name: Fetch File List
9+
# ansible.builtin.command:
10+
# cmd: bash -c find . *
11+
# chdir: "{{ directory_temp_destination }}"
12+
# changed_when: false
13+
# register: files_backup
14+
# become: true
15+
# no_log: true # Don't log the files found. not required
1616

1717

18-
- name: Get File Stats
19-
ansible.builtin.include_tasks:
20-
file: tasks/file_stat.yaml
21-
loop: "{{ files_backup.stdout_lines | list }}"
22-
loop_control:
23-
loop_var: filename
18+
# - name: Get File Stats
19+
# ansible.builtin.include_tasks:
20+
# file: tasks/file_stat.yaml
21+
# loop: "{{ files_backup.stdout_lines | list }}"
22+
# loop_control:
23+
# loop_var: filename
2424

2525

26-
- name: Create Metadata File
27-
ansible.builtin.copy:
28-
content: "{{ metadata | from_yaml | to_nice_yaml(indent=0) | indent(0) }}"
29-
dest: "{{ directory_temp_destination }}/metadata.yaml"
30-
owner: root
31-
group: backup
32-
mode: '0770'
33-
become: true
26+
# - name: Create Metadata File
27+
# ansible.builtin.copy:
28+
# content: "{{ metadata | from_yaml | to_nice_yaml(indent=0) | indent(0) }}"
29+
# dest: "{{ directory_temp_destination }}/metadata.yaml"
30+
# owner: root
31+
# group: backup
32+
# mode: '0770'
33+
# become: true

0 commit comments

Comments
 (0)