From c596dc56a8fb8ab5325f213603bcec1576718f4c Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Thu, 26 Sep 2024 05:03:08 -0600 Subject: [PATCH] Update Docker & Kubernetes/Servers/AWX/AWX Operator/Inventories/Overview.md --- .../AWX/AWX Operator/Inventories/Overview.md | 125 +++++++++++++----- 1 file changed, 93 insertions(+), 32 deletions(-) diff --git a/Docker & Kubernetes/Servers/AWX/AWX Operator/Inventories/Overview.md b/Docker & Kubernetes/Servers/AWX/AWX Operator/Inventories/Overview.md index eb49949..68432bb 100644 --- a/Docker & Kubernetes/Servers/AWX/AWX Operator/Inventories/Overview.md +++ b/Docker & Kubernetes/Servers/AWX/AWX Operator/Inventories/Overview.md @@ -1,39 +1,100 @@ # Host Inventories -When you are deploying playbooks, you target hosts that exist in "Inventories". These inventories consist of a list of hosts and their corresponding IP addresses, as well as any host-specific variables that may be necessary to declare to run the playbook. +When you are deploying playbooks, you target hosts that exist in "Inventories". These inventories consist of a list of hosts and their corresponding IP addresses, as well as any host-specific variables that may be necessary to declare to run the playbook. You can see an example of my Bunny Lab inventory file at the time of writing this document, below: -```jsx title="(NTLM) MOON-HOST-01" -Name: (NTLM) MOON-HOST-01 -Host(s): MOON-HOST-01 @ 192.168.3.4 +!!! note "Inventory Data Relationships" + An inventory file consists of hosts, groups, and variables. A host belongs to a group, and a group can have variables configured for it. If you run a playbook / job template against a host, it will assign the variables associated to the group that host belongs to (if any) during runtime. -Variables: ---- -ansible_connection: winrm -ansible_winrm_kerberos_delegation: false -ansible_port: 5986 -ansible_winrm_transport: ntlm -ansible_winrm_server_cert_validation: ignore -``` +```title="https://git.bunny-lab.io/GitOps/awx.bunny-lab.io/src/branch/main/inventories/homelab.ini" +# Networking +bunny-pfsense-01 ansible_host=192.168.3.1 -```jsx title="(NTLM) CyberStrawberry - Windows Hosts" -Name: (NTLM) CyberStrawberry - Windows Hosts -Host(s): MOON-HOST-01 @ 192.168.3.4 -Host(s): MOON-HOST-02 @ 192.168.3.5 +# Deeptree Nodes +deep-node ansible_host=10.0.0.20 -Variables: ---- -ansible_connection: winrm -ansible_winrm_kerberos_delegation: false -ansible_port: 5986 -ansible_winrm_transport: ntlm -ansible_winrm_server_cert_validation: ignore -``` +# Servers +pfsense ansible_host=192.168.3.1 +lab-jelly-01 ansible_host=192.168.3.2 +moon-storage-01 ansible_host=192.168.3.3 +virt-node-01 ansible_host=virt-node-01.bunny-lab.io +virt-node-02 ansible_host=virt-node-02.bunny-lab.io +lab-photos-01 ansible_host=lab-photos-01.bunny-lab.io +lab-veeam-01 ansible_host=192.168.3.8 +lab-veeam-02 ansible_host=192.168.3.9 +awx ansible_host=192.168.3.10 +lab-games-02 ansible_host=lab-games-01.bunny-lab.io +bunny-docker-01 ansible_host=192.168.3.12 +mail ansible_host=mail.bunny-lab.io +lab-games-03 ansible_host=lab-games-03.bunny-lab.io +lab-veeam-03 ansible_host=192.168.3.15 +alpine-work-01 ansible_host=192.168.3.17 +lab-auth-01 ansible_host=192.168.3.18 +lab-auth-02 ansible_host=192.168.3.20 +container-node-01 ansible_host=192.168.3.19 +lab-dc-01 ansible_host=192.168.3.25 +lab-dc-02 ansible_host=192.168.3.26 +lab-iris-01 ansible_host=192.168.3.27 +lab-games-01 ansible_host=192.168.3.28 +cloud ansible_host=192.168.3.29 +lab-dt-01 ansible_host=192.168.3.30 +lab-sophos-01 ansible_host=192.168.3.254 -```jsx title="(LINUX) Unsorted Devices" -Name: (LINUX) Unsorted Devices -Host(s): CLSTR-COMPUTE-01 @ 192.168.3.50 -Host(s): CLSTR-COMPUTE-02 @ 192.168.3.51 +# Workstations +bunny-dsktp-01 ansible_host=10.0.0.20 +bunny-lptp-01 ansible_host=10.0.0.17 +bunny-lptp-02 ansible_host=10.0.0.4 +lab-dt-01 ansible_host=192.168.3.30 -Variables: ---- -None -``` +# Group Definitions +[domainControllers] +lab-dc-01 +lab-dc-02 + +[domainControllers:vars] +ansible_connection=winrm +ansible_winrm_kerberos_delegation=false +ansible_port=5986 +ansible_winrm_transport=ntlm +ansible_winrm_server_cert_validation=ignore + +[containerOrchestration] +container-node-01 + +[windowsServers] +lab-dc-01 +lab-dc-02 +virt-node-01 +virt-node-02 +lab-veeam-01 +lab-games-01 + +[windowsServers:vars] +ansible_connection=winrm +ansible_winrm_kerberos_delegation=false +ansible_port=5986 +ansible_winrm_transport=ntlm +ansible_winrm_server_cert_validation=ignore + +[linuxServers] +lab-jelly-01 +lab-photos-01 +mail +alpine-work-01 +lab-auth-01 +lab-auth-02 +container-node-01 +lab-dt-01 +cloud + +[workstations] +bunny-dsktp-01 +bunny-lptp-01 +bunny-lptp-02 +bunny-dsktp-01 + +[workstations:vars] +ansible_connection=winrm +ansible_winrm_kerberos_delegation=false +ansible_port=5986 +ansible_winrm_transport=ntlm +ansible_winrm_server_cert_validation=ignore +``` \ No newline at end of file