30 lines
646 B
YAML
30 lines
646 B
YAML
---
|
|
- 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 }}"
|