New stuff

This commit is contained in:
2025-01-08 17:20:07 -05:00
parent fa1b5cce00
commit 7a93d8d72a
4 changed files with 84 additions and 5 deletions

29
check_device3.yml Normal file
View File

@ -0,0 +1,29 @@
---
- name: Something
hosts: bigboot
become: false
gather_facts: true
vars:
shrink_lv_devices:
- device: "/dev/mapper/system-root"
size: 81229615104
- device: "/dev/mapper/system-home"
size: 21536149506
tasks:
- name: Retrieve mount points
ansible.builtin.setup:
gather_subset:
- "!all"
- "!min"
- mounts
- name: Debug mounts
ansible.builtin.debug:
var: ansible_facts['mounts']
- name: Check if device has shrunken successfully
ansible.builtin.include_tasks: tasks/check_if_shrunk.yml
loop: "{{ shrink_lv_devices }}"