Skip to content

Commit 9f32287

Browse files
committed
Fix Swift role if edpm_swift_disks is undefined
If edpm_swift_disks is undefined setting up disks should be simply skipped. This is most likely intended, for example when adopting an existing deployment and using already existing disks and mountpoints. Signed-off-by: Christian Schwede <[email protected]>
1 parent da4023c commit 9f32287

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

roles/edpm_swift/tasks/disks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
- name: Setup Swift disks
1818
become: true
19+
tags: swiftdisk
20+
when: hostvars[inventory_hostname]['edpm_swift_disks'] is defined
1921
block:
2022
- name: Create partitions for Swift
2123
community.general.parted:

0 commit comments

Comments
 (0)