include role instead of import playbook

This commit is contained in:
Chris Hammer 2024-07-21 00:58:44 -04:00
parent 3cc0f210e6
commit 9284232e47

View File

@ -5,6 +5,9 @@
gather_facts: true gather_facts: true
strategy: free strategy: free
vars_files:
- bigboot_vars.yml
tasks: tasks:
- name: Debug bigboot_execute_shrink_lv - name: Debug bigboot_execute_shrink_lv
ansible.builtin.debug: ansible.builtin.debug:
@ -15,7 +18,8 @@
msg: "bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] -> {{ bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] }}" msg: "bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] -> {{ bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] }}"
- name: Perform a ReaR backup before the /boot expansion - name: Perform a ReaR backup before the /boot expansion
ansible.builtin.import_playbook: rhc.rear.rear_backup ansible.builtin.include_role:
name: rhc.rear.rear_backup
when: when:
- (bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | bool - (bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | bool
or bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool) or bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool)