From 4e144ecbc131f2fe462072f181043c0e5c958bb4 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Fri, 29 Mar 2024 13:59:12 -0400 Subject: [PATCH] more conditionals --- node1.yml | 2 ++ node2.yml | 4 +++- node3.yml | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/node1.yml b/node1.yml index 9f6405e..4470629 100644 --- a/node1.yml +++ b/node1.yml @@ -13,6 +13,8 @@ data: __bigboot_size_target: "{{ bigboot_size_target }}" __bigboot_adjacent_lvm: "/dev/mapper/system-root" + __bigboot_execute_bigboot: true + __bigboot_execute_shrink: false per_host: false aggregate: false diff --git a/node2.yml b/node2.yml index b2e3ef5..e0cb76e 100644 --- a/node2.yml +++ b/node2.yml @@ -8,6 +8,8 @@ - name: Debug test_set_stats ansible.builtin.debug: msg: "Another node will use __bigboot_size_target -> {{ __bigboot_size_target }}" - when: __bigboot_size_target | length > 1 + when: + - __bigboot_size_target | length > 1 + - __bigboot_execute_shrink | bool ... diff --git a/node3.yml b/node3.yml index bf45a58..8d10cbb 100644 --- a/node3.yml +++ b/node3.yml @@ -8,6 +8,8 @@ - name: Debug test_set_stats ansible.builtin.debug: msg: "Another node will use __bigboot_adjacent_lvm -> {{ __bigboot_adjacent_lvm }}" - when: "'root' in __bigboot_adjacent_lvm" + when: + - "'root' in __bigboot_adjacent_lvm" + - __bigboot_execute_bigboot | bool ...