From 13bc2bf33cfea64bb40ca558dc281212a029fdb0 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Fri, 29 Mar 2024 11:35:20 -0400 Subject: [PATCH] fixes --- node1.yml | 9 ++++++--- node2.yml | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/node1.yml b/node1.yml index fc410e0..9b6f018 100644 --- a/node1.yml +++ b/node1.yml @@ -1,19 +1,22 @@ --- -- name: Set stats test +- name: Set stats test - node1 hosts: all become: true gather_facts: false + vars: + bigboot_size_target: 1G + tasks: - name: Test a var ansible.builtin.set_stats: data: - test_set_stats: "It works!" + __bigboot_size_target: bigboot_size_target per_host: false aggregate: false - name: Debug test_set_stats ansible.builtin.debug: - var: test_set_stats | default('It doesnt work') + msg: "Locally we use bigboot_size_target -> {{ bigboot_size_target }}" ... diff --git a/node2.yml b/node2.yml index 0787b50..cebc21f 100644 --- a/node2.yml +++ b/node2.yml @@ -1,5 +1,5 @@ --- -- name: Ping check to determine if hosts are reachable +- name: Set stats test - node2 hosts: all become: true gather_facts: false @@ -7,6 +7,6 @@ tasks: - name: Debug test_set_stats ansible.builtin.debug: - msg: "{{ test_set_stats | default('It didnt work!') }}" + msg: "Another node will use __bigboot_size_target -> {{ __bigboot_size_target }}" ...