initial commit; add machine-test.yml

This commit is contained in:
Chris Hammer
2022-02-08 20:24:35 -05:00
commit 7950036bed
2 changed files with 24 additions and 0 deletions

7
hosts Normal file
View File

@ -0,0 +1,7 @@
[dev]
lab-dev-1
lab-dev-2
[prod]
lab-prod-1
lab-prod-2

17
machine-test.yml Normal file
View File

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