Skip to content

Commit b00050c

Browse files
committed
fix indentation of block
1 parent ab43f4b commit b00050c

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

roles/create_cvmfs_content_structure/tasks/do_repo.yml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,38 @@
1212

1313
- name: Apply changes to CVMFS repository, if there are any
1414
block:
15-
- name: "Create symlinks"
16-
ansible.builtin.file:
17-
path: "/cvmfs/{{ cvmfs_repo }}/{{ item }}"
18-
src: "{{ symlinks[item] }}"
19-
state: link
20-
force: true
21-
with_items: "{{ symlinks }}"
22-
register: create_symlinks
23-
24-
- name: "Copy files"
25-
ansible.builtin.copy:
26-
src: "{{ item.name }}"
27-
dest: "/cvmfs/{{ cvmfs_repo }}/{{ item.dest }}"
28-
mode: "{{ item.mode }}"
29-
with_items: "{{ files }}"
30-
register: create_files
31-
32-
- name: Publish transaction
33-
ansible.builtin.command:
34-
cmd: "cvmfs_server publish {{ cvmfs_repo }}"
35-
removes: "/var/spool/cvmfs/{{ cvmfs_repo }}/in_transaction.lock"
36-
when:
37-
- create_cvmfs_content_structure_start_transaction
38-
- create_cvmfs_content_structure_publish_transaction
39-
- create_symlinks.changed or create_files.changed
40-
register: publish
41-
42-
- name: Abort transaction
43-
ansible.builtin.command:
44-
cmd: "cvmfs_server abort {{ cvmfs_repo }}"
45-
removes: "/var/spool/cvmfs/{{ cvmfs_repo }}/in_transaction.lock"
46-
when: publish is skipped
15+
- name: "Create symlinks"
16+
ansible.builtin.file:
17+
path: "/cvmfs/{{ cvmfs_repo }}/{{ item }}"
18+
src: "{{ symlinks[item] }}"
19+
state: link
20+
force: true
21+
with_items: "{{ symlinks }}"
22+
register: create_symlinks
23+
24+
- name: "Copy files"
25+
ansible.builtin.copy:
26+
src: "{{ item.name }}"
27+
dest: "/cvmfs/{{ cvmfs_repo }}/{{ item.dest }}"
28+
mode: "{{ item.mode }}"
29+
with_items: "{{ files }}"
30+
register: create_files
31+
32+
- name: Publish transaction
33+
ansible.builtin.command:
34+
cmd: "cvmfs_server publish {{ cvmfs_repo }}"
35+
removes: "/var/spool/cvmfs/{{ cvmfs_repo }}/in_transaction.lock"
36+
when:
37+
- create_cvmfs_content_structure_start_transaction
38+
- create_cvmfs_content_structure_publish_transaction
39+
- create_symlinks.changed or create_files.changed
40+
register: publish
41+
42+
- name: Abort transaction
43+
ansible.builtin.command:
44+
cmd: "cvmfs_server abort {{ cvmfs_repo }}"
45+
removes: "/var/spool/cvmfs/{{ cvmfs_repo }}/in_transaction.lock"
46+
when: publish is skipped
4747

4848
rescue:
4949
- name: Abort transaction

0 commit comments

Comments
 (0)