workflow test

This commit is contained in:
Chris Hammer 2024-03-29 11:16:07 -04:00
parent 63aad04c3a
commit 0dbf1edf0d
2 changed files with 29 additions and 0 deletions

17
node1.yml Normal file
View File

@ -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
...

12
node2.yml Normal file
View File

@ -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!') }}"
...