change method for deploying and executing pvsqueeze.sh due to environmental issues

This commit is contained in:
Chris Hammer 2024-10-17 14:33:02 -04:00
parent af38c279da
commit 5bd52ff627

View File

@ -35,8 +35,23 @@
when: when:
- bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool - bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool
block: block:
- name: Shift free extents to end of PV # Under normal circumstances we'd use this method, but unable to do
ansible.builtin.script: "scripts/pvsqueeze.sh {{ bigboot_data[inventory_hostname]['bigboot_pv'] }}" # so in certain environments so lets use copy/command instead
# - name: Shift free extents to end of PV
# ansible.builtin.script: "scripts/pvsqueeze.sh {{ bigboot_data[inventory_hostname]['bigboot_pv'] }}"
# register: bigboot_pvsqueeze
- name: Copy script to host
ansible.builtin.copy:
src: scripts/pvsqueeze.sh
dest: /var/tmp/pvsqueeze.sh
owner: root
group: root
mode: '0700'
- name: Shift free extents to end of PV via pvsqueeze.sh
ansible.builtin.command:
cmd: "/var/tmp/pvsqueeze.sh {{ bigboot_data[inventory_hostname]['bigboot_pv'] }}"
register: bigboot_pvsqueeze register: bigboot_pvsqueeze
- name: Expand the /boot partition as requested - name: Expand the /boot partition as requested