From 07e46fc755e6e21ae97094dd08005e6dc58ba28d Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 3 Jun 2021 21:48:39 +0200 Subject: [PATCH] refactor: add pvresize to lvg and remove workaround --- tasks/setup.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tasks/setup.yml b/tasks/setup.yml index 7e0621c..c61fb76 100644 --- a/tasks/setup.yml +++ b/tasks/setup.yml @@ -11,18 +11,11 @@ vg: "{{ item.group }}" pvs: "{{ item.disks | join(',') }}" pesize: "4" + pvresize: yes loop: "{{ lvm_volumes }}" loop_control: label: "name: {{ item.group }}, disks: {{ item.disks | join(',') }}" - # workaround: https://github.com/ansible/ansible/pull/52890 - - name: Resize physical volume - command: "pvresize {{ item.disks | join(' ') }}" - changed_when: False - with_items: "{{ lvm_volumes }}" - loop_control: - label: "disks: {{ item.disks | join(',') }}" - - name: Create logical volume lvol: vg: "{{ item.group }}"