mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2025-12-14 22:04:48 +03:00
code smells
This commit is contained in:
2
.github/workflows/molecule.yml
vendored
2
.github/workflows/molecule.yml
vendored
@@ -15,7 +15,7 @@ on:
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
|
||||
lint:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -89,12 +89,6 @@
|
||||
)
|
||||
)
|
||||
|
||||
- name: "debug mount"
|
||||
loop: "{{ vg.lvnames }}"
|
||||
debug: var=lv
|
||||
loop_control:
|
||||
loop_var: lv
|
||||
|
||||
- name: manage_lvm | mounting new filesystem(s)
|
||||
mount:
|
||||
path: "{{ lv.mntp }}"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
state: "present"
|
||||
become: true
|
||||
|
||||
- name: centos | install xfs tools
|
||||
- name: debian | install xfs tools
|
||||
package:
|
||||
name: "xfsprogs"
|
||||
state: "present"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
---
|
||||
# tasks file for ansible-manage-lvm
|
||||
- include: debian.yml
|
||||
- include_tasks: debian.yml
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- include: centos.yml
|
||||
- include_tasks: centos.yml
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- include: manage_lvm.yml
|
||||
- include_tasks: manage_lvm.yml
|
||||
when: >
|
||||
manage_lvm and
|
||||
lvm_groups is defined
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
---
|
||||
- name: manage_lvm | manage physical volume group creation
|
||||
include: create_vg.yml
|
||||
include_tasks: create_vg.yml
|
||||
|
||||
- name: manage_lvm | loop over logical volume group(s) to create logical volumes
|
||||
include: create_lv.yml
|
||||
include_tasks: create_lv.yml
|
||||
loop: "{{ lvm_groups }}"
|
||||
loop_control:
|
||||
loop_var: vg
|
||||
|
||||
- name: manage_lvm | loop over logical volume group(s) to create filesystems
|
||||
include: create_fs.yml
|
||||
include_tasks: create_fs.yml
|
||||
loop: "{{ lvm_groups }}"
|
||||
loop_control:
|
||||
loop_var: vg
|
||||
|
||||
Reference in New Issue
Block a user