New stuff
This commit is contained in:
29
check_device3.yml
Normal file
29
check_device3.yml
Normal 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 }}"
|
Reference in New Issue
Block a user