Sync with Develop #7
@ -35,8 +35,23 @@
|
||||
when:
|
||||
- bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool
|
||||
block:
|
||||
- name: Shift free extents to end of PV
|
||||
ansible.builtin.script: "scripts/pvsqueeze.sh {{ bigboot_data[inventory_hostname]['bigboot_pv'] }}"
|
||||
# Under normal circumstances we'd use this method, but unable to do
|
||||
# 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
|
||||
|
||||
- name: Expand the /boot partition as requested
|
||||
|
Loading…
x
Reference in New Issue
Block a user