mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2026-09-06 07:28:24 +03:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3ac9669088 | |||
| 4219da5423 | |||
| 683c617265 | |||
| b41ffc5e58 | |||
| 564d3d1f6f | |||
| 1d0fa70d66 | |||
| 8c3bca39ec | |||
| 4fbcf1cd19 |
Generated
+832
-874
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -6,7 +6,7 @@ authors = ["Larry Smith Jr. <mrlesmithjr@gmail.com>"]
|
|||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.9,<4.0"
|
python = ">=3.9,<4.0"
|
||||||
ansible = "6.6.0"
|
ansible = "8.5.0"
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
[tool.poetry.group.dev.dependencies]
|
||||||
ansible-lint = "6.8.7"
|
ansible-lint = "6.8.7"
|
||||||
|
|||||||
+2
-2
@@ -30,7 +30,7 @@
|
|||||||
- lv.filesystem != "swap"
|
- lv.filesystem != "swap"
|
||||||
|
|
||||||
- name: create_fs | creating new filesystem on new LVM logical volume(s)
|
- name: create_fs | creating new filesystem on new LVM logical volume(s)
|
||||||
community.general.system.filesystem:
|
community.general.filesystem:
|
||||||
fstype: "{{ lv.filesystem }}"
|
fstype: "{{ lv.filesystem }}"
|
||||||
dev: "/dev/{{ vg.vgname }}/{{ lv.lvname }}"
|
dev: "/dev/{{ vg.vgname }}/{{ lv.lvname }}"
|
||||||
resizefs: yes
|
resizefs: yes
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
- lv.filesystem != 'xfs'
|
- lv.filesystem != 'xfs'
|
||||||
|
|
||||||
- name: create_fs | creating new xfs filesystem on new LVM logical volume(s)
|
- name: create_fs | creating new xfs filesystem on new LVM logical volume(s)
|
||||||
community.general.system.filesystem:
|
community.general.filesystem:
|
||||||
fstype: "{{ lv.filesystem }}"
|
fstype: "{{ lv.filesystem }}"
|
||||||
dev: "/dev/{{ vg.vgname }}/{{ lv.lvname }}"
|
dev: "/dev/{{ vg.vgname }}/{{ lv.lvname }}"
|
||||||
opts: "{{ lv.fsopts | default(omit) }}"
|
opts: "{{ lv.fsopts | default(omit) }}"
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
verbosity: 2
|
verbosity: 2
|
||||||
|
|
||||||
- name: create_lv | creating new LVM logical volume(s)
|
- name: create_lv | creating new LVM logical volume(s)
|
||||||
community.general.system.lvol:
|
community.general.lvol:
|
||||||
vg: "{{ vg.vgname }}"
|
vg: "{{ vg.vgname }}"
|
||||||
lv: "{{ lv.lvname }}"
|
lv: "{{ lv.lvname }}"
|
||||||
size: "{{ lv.size }}"
|
size: "{{ lv.size }}"
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: create_vg | creating new LVM volume group(s)
|
- name: create_vg | creating new LVM volume group(s)
|
||||||
community.general.system.lvg:
|
community.general.lvg:
|
||||||
vg: "{{ vg.vgname }}"
|
vg: "{{ vg.vgname }}"
|
||||||
pvs: "{{ vg.disks | join(',') }}"
|
pvs: "{{ vg.disks | join(',') }}"
|
||||||
state: present
|
state: present
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
loop_var: vg
|
loop_var: vg
|
||||||
|
|
||||||
- name: manage_lvm | Removing LVM logical volume(s)
|
- name: manage_lvm | Removing LVM logical volume(s)
|
||||||
community.general.system.lvol:
|
community.general.lvol:
|
||||||
vg: "{{ item.0.vgname }}"
|
vg: "{{ item.0.vgname }}"
|
||||||
lv: "{{ item.1.lvname }}"
|
lv: "{{ item.1.lvname }}"
|
||||||
state: absent
|
state: absent
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
- not item.1.create|bool
|
- not item.1.create|bool
|
||||||
|
|
||||||
- name: manage_lvm | Removing LVM volume group(s)
|
- name: manage_lvm | Removing LVM volume group(s)
|
||||||
community.general.system.lvg:
|
community.general.lvg:
|
||||||
vg: "{{ item.vgname }}"
|
vg: "{{ item.vgname }}"
|
||||||
pvs: "{{ item.disks | join(',') }}"
|
pvs: "{{ item.disks | join(',') }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
|||||||
Reference in New Issue
Block a user