diff options
Diffstat (limited to 'roles/ands_storage')
-rw-r--r-- | roles/ands_storage/tasks/main.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/roles/ands_storage/tasks/main.yml b/roles/ands_storage/tasks/main.yml index 8e9d44b..7146da0 100644 --- a/roles/ands_storage/tasks/main.yml +++ b/roles/ands_storage/tasks/main.yml @@ -43,14 +43,18 @@ lvol: vg="{{ ands_data_vg }}" lv="{{ ands_data_lv }}" size="{{ ands_data_volume_size }}" - name: Ensure Ands Data Volume is formatted and resize if necessary - filesystem: fstype="xfs" resizefs="yes" dev="/dev/{{ ands_data_vg }}/{{ ands_data_lv }}" + filesystem: fstype="xfs" dev="/dev/{{ ands_data_vg }}/{{ ands_data_lv }}" - name: Mount Ands Data Volume mount: name="{{ ands_data_path }}" src="/dev/{{ ands_data_vg }}/{{ ands_data_lv }}" fstype="{{ ands_data_fs }}" opts="defaults" state="mounted" +# System complains if we try to resize unmounted file system +- name: Ensure Ands Data Volume is formatted and resize if necessary + filesystem: fstype="xfs" resizefs="yes" dev="/dev/{{ ands_data_vg }}/{{ ands_data_lv }}" + - name: Provision Ands local storage domains include_tasks: hostmount.yml with_items: "{{ ands_local_storage_domains | default([]) }}" - when: domain.servers | intersect(group_names) | length > 0 + when: domain.servers in group_names loop_control: loop_var: domain |