Skip to content

Commit

Permalink
Fix double quote issue when creating gluster brick
Browse files Browse the repository at this point in the history
The issue is a regression caused by ansible-list changes in
#658

Signed-off-by: Martin Perina <mperina@redhat.com>
Fixes: #804
  • Loading branch information
mwperina committed Jan 24, 2023
1 parent 221eab0 commit 7620cfd
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
# rc 5 = Logical Volume 'name' already exists in volume group.
- name: Create a LV thinpool
ansible.builtin.command: >
"lvcreate -l 100%FREE --chunksize {{ lv_chunksize }} --poolmetadatasize {{ pool_metadatasize }} --zero n
--type thin-pool --thinpool {{ lvname }}_pool {{ vgname }}"
lvcreate -l 100%FREE --chunksize {{ lv_chunksize }} --poolmetadatasize {{ pool_metadatasize }} --zero n
--type thin-pool --thinpool {{ lvname }}_pool {{ vgname }}
register: resp
failed_when: resp.rc not in [0, 5]
changed_when: resp.rc == 0
Expand All @@ -74,8 +74,9 @@
# rc 1 = Filesystem already exists
- name: Create an xfs filesystem
ansible.builtin.command: >
"mkfs.xfs -f -K -i size=512 -n size=8192 {% if 'raid' in disktype %} -d sw={{ diskcount }},su={{ stripesize }}k
{% endif %} /dev/{{ vgname }}/{{ lvname }}"
mkfs.xfs -f -K -i size=512 -n size=8192
{% if 'raid' in disktype %} -d sw={{ diskcount }},su={{ stripesize }}k {% endif %}
/dev/{{ vgname }}/{{ lvname }}
register: resp
failed_when: resp.rc not in [0, 1]
changed_when: resp.rc == 0
Expand Down

0 comments on commit 7620cfd

Please sign in to comment.