From 7950036bed5e8552f5cb32d9880bce3ea11f0300 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Tue, 8 Feb 2022 20:24:35 -0500 Subject: [PATCH] initial commit; add machine-test.yml --- hosts | 7 +++++++ machine-test.yml | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 hosts create mode 100644 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