--- - name: Shrink logical volumes hosts: shrink_lv become: false gather_facts: true tasks: - name: Issue reboot command ansible.builtin.command: /sbin/shutdown -r +1 - name: Wait for the reboot to complete ansible.builtin.wait_for_connection: connect_timeout: 20 sleep: 10 delay: 70 timeout: "{{ pre_ipu_reboot_timeout | default('1800') }}" - name: Find the boot mount entry ansible.builtin.set_fact: bigboot_boot_mount_entry: "{{ ansible_facts.mounts | selectattr('mount', 'match', '/boot') | first }}" - name: Debug bigboot_boot_mount_entry ansible.builtin.debug: var: bigboot_boot_mount_entry