This commit is contained in:
Chris Hammer 2024-03-29 11:35:20 -04:00
parent 318f6578eb
commit 13bc2bf33c
2 changed files with 8 additions and 5 deletions

View File

@ -1,19 +1,22 @@
--- ---
- name: Set stats test - name: Set stats test - node1
hosts: all hosts: all
become: true become: true
gather_facts: false gather_facts: false
vars:
bigboot_size_target: 1G
tasks: tasks:
- name: Test a var - name: Test a var
ansible.builtin.set_stats: ansible.builtin.set_stats:
data: data:
test_set_stats: "It works!" __bigboot_size_target: bigboot_size_target
per_host: false per_host: false
aggregate: false aggregate: false
- name: Debug test_set_stats - name: Debug test_set_stats
ansible.builtin.debug: ansible.builtin.debug:
var: test_set_stats | default('It doesnt work') msg: "Locally we use bigboot_size_target -> {{ bigboot_size_target }}"
... ...

View File

@ -1,5 +1,5 @@
--- ---
- name: Ping check to determine if hosts are reachable - name: Set stats test - node2
hosts: all hosts: all
become: true become: true
gather_facts: false gather_facts: false
@ -7,6 +7,6 @@
tasks: tasks:
- name: Debug test_set_stats - name: Debug test_set_stats
ansible.builtin.debug: ansible.builtin.debug:
msg: "{{ test_set_stats | default('It didnt work!') }}" msg: "Another node will use __bigboot_size_target -> {{ __bigboot_size_target }}"
... ...