commit 7950036bed5e8552f5cb32d9880bce3ea11f0300 Author: Chris Hammer Date: Tue Feb 8 20:24:35 2022 -0500 initial commit; add machine-test.yml diff --git a/hosts b/hosts new file mode 100644 index 0000000..361aee8 --- /dev/null +++ b/hosts @@ -0,0 +1,7 @@ +[dev] +lab-dev-1 +lab-dev-2 + +[prod] +lab-prod-1 +lab-prod-2 diff --git a/machine-test.yml b/machine-test.yml new file mode 100644 index 0000000..51ed495 --- /dev/null +++ b/machine-test.yml @@ -0,0 +1,17 @@ +--- +- name: Tests machine connections via Ansible Tower/Ansible Automation Platform + hosts: all + gather_facts: no + become: no + + + tasks: + - name: "Test #1 - whoami" + command: + cmd: whoami + register: r_cmd_whoami + + + - name: "Results #1 - whoami" + debug: + var: r_cmd_whoami.stdout