Fixed linting issues

This commit is contained in:
Larry Smith Jr
2023-06-15 08:52:28 -04:00
parent 51b7015f9c
commit d27a3809d9
17 changed files with 95 additions and 94 deletions
+4 -4
View File
@@ -1,18 +1,18 @@
---
- name: manage_lvm | manage physical volume group creation
include_tasks: create_vg.yml
ansible.builtin.include_tasks: create_vg.yml
loop: "{{ lvm_groups }}"
loop_control:
loop_var: vg
- name: manage_lvm | Removing LVM logical volume(s)
lvol:
community.general.system.lvol:
vg: "{{ item.0.vgname }}"
lv: "{{ item.1.lvname }}"
state: absent
force: true
become: true
loop: "{{ lvm_groups|subelements('lvnames', {'skip_missing': true}) }}"
loop: "{{ lvm_groups | subelements('lvnames', {'skip_missing': true}) }}"
when:
- item.1 is defined
- item.1 != 'None'
@@ -20,7 +20,7 @@
- not item.1.create|bool
- name: manage_lvm | Removing LVM volume group(s)
lvg:
community.general.system.lvg:
vg: "{{ item.vgname }}"
pvs: "{{ item.disks | join(',') }}"
state: absent