debugging wtf lol
All checks were successful
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-centos9) (push) Successful in 15s
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-debian11) (push) Successful in 13s
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-debian12) (push) Successful in 13s
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-fedora39) (push) Successful in 15s
All checks were successful
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-centos9) (push) Successful in 15s
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-debian11) (push) Successful in 13s
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-debian12) (push) Successful in 13s
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-fedora39) (push) Successful in 15s
This commit is contained in:
parent
a99a06288f
commit
a39826b49b
@ -8,16 +8,27 @@
|
||||
ansible.builtin.set_fact:
|
||||
bigboot_boot_device: "{{ bigboot_boot_mount.device | regex_replace('^.*/(\\w+$)', '\\1') }}"
|
||||
|
||||
- name: Capture partition side for /boot parition
|
||||
- name: Capture partition size for /boot parition
|
||||
ansible.builtin.set_fact:
|
||||
bigboot_boot_partsize: "{{ ansible_devices[bigboot_boot_device[:-1]].partitions[bigboot_boot_device].size }}"
|
||||
|
||||
- name: Debug bigboot_boot_partsize
|
||||
ansible.builtin.debug:
|
||||
var: bigboot_boot_partsize
|
||||
|
||||
- name: Capture required expansion space
|
||||
ansible.builtin.set_fact:
|
||||
bigboot_expansion_diff:
|
||||
"{{ bigboot_size | human_to_bytes - bigboot_boot_partsize | human_to_bytes }}"
|
||||
no_log: false
|
||||
|
||||
- name: Debug bigboot_expansion_diff
|
||||
ansible.builtin.debug:
|
||||
var: bigboot_expansion_diff
|
||||
|
||||
- name: Boo
|
||||
ansible.builtin.meta: end_host
|
||||
|
||||
- name: Convert size difference to MB
|
||||
ansible.builtin.set_fact:
|
||||
bigboot_size_expansion_mb: "{{ bigboot_expansion_diff | int | human_readable(unit='M') }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user