diff --git a/node1.yml b/node1.yml new file mode 100644 index 0000000..89bc847 --- /dev/null +++ b/node1.yml @@ -0,0 +1,17 @@ +--- +- name: Set stats test + hosts: all + become: true + gather_facts: false + + tasks: + - name: Test a var + ansible.builtin.set_stats: + data: + test_set_stats: "It works!" + + - name: Debug test_set_stats + ansible.builtin.debug: + var: test_set_stats + +... diff --git a/node2.yml b/node2.yml new file mode 100644 index 0000000..0787b50 --- /dev/null +++ b/node2.yml @@ -0,0 +1,12 @@ +--- +- name: Ping check to determine if hosts are reachable + hosts: all + become: true + gather_facts: false + + tasks: + - name: Debug test_set_stats + ansible.builtin.debug: + msg: "{{ test_set_stats | default('It didnt work!') }}" + +...