From 9284232e477c9bb592d73c2af691be12770412cd Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Sun, 21 Jul 2024 00:58:44 -0400 Subject: [PATCH] include role instead of import playbook --- bigboot_rear_backup.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bigboot_rear_backup.yml b/bigboot_rear_backup.yml index 786c8c7..039155f 100644 --- a/bigboot_rear_backup.yml +++ b/bigboot_rear_backup.yml @@ -5,6 +5,9 @@ gather_facts: true strategy: free + vars_files: + - bigboot_vars.yml + tasks: - name: Debug bigboot_execute_shrink_lv ansible.builtin.debug: @@ -15,7 +18,8 @@ msg: "bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] -> {{ bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] }}" - 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: - (bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | bool or bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool)