Update Docker & Kubernetes/Servers/AWX/AWX Operator/Inventories/Overview.md
This commit is contained in:
@ -1,39 +1,100 @@
|
|||||||
# Host Inventories
|
# 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"
|
!!! note "Inventory Data Relationships"
|
||||||
Name: (NTLM) MOON-HOST-01
|
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.
|
||||||
Host(s): MOON-HOST-01 @ 192.168.3.4
|
|
||||||
|
|
||||||
Variables:
|
```title="https://git.bunny-lab.io/GitOps/awx.bunny-lab.io/src/branch/main/inventories/homelab.ini"
|
||||||
---
|
# Networking
|
||||||
ansible_connection: winrm
|
bunny-pfsense-01 ansible_host=192.168.3.1
|
||||||
ansible_winrm_kerberos_delegation: false
|
|
||||||
ansible_port: 5986
|
# Deeptree Nodes
|
||||||
ansible_winrm_transport: ntlm
|
deep-node ansible_host=10.0.0.20
|
||||||
ansible_winrm_server_cert_validation: ignore
|
|
||||||
```
|
# Servers
|
||||||
|
pfsense ansible_host=192.168.3.1
|
||||||
```jsx title="(NTLM) CyberStrawberry - Windows Hosts"
|
lab-jelly-01 ansible_host=192.168.3.2
|
||||||
Name: (NTLM) CyberStrawberry - Windows Hosts
|
moon-storage-01 ansible_host=192.168.3.3
|
||||||
Host(s): MOON-HOST-01 @ 192.168.3.4
|
virt-node-01 ansible_host=virt-node-01.bunny-lab.io
|
||||||
Host(s): MOON-HOST-02 @ 192.168.3.5
|
virt-node-02 ansible_host=virt-node-02.bunny-lab.io
|
||||||
|
lab-photos-01 ansible_host=lab-photos-01.bunny-lab.io
|
||||||
Variables:
|
lab-veeam-01 ansible_host=192.168.3.8
|
||||||
---
|
lab-veeam-02 ansible_host=192.168.3.9
|
||||||
ansible_connection: winrm
|
awx ansible_host=192.168.3.10
|
||||||
ansible_winrm_kerberos_delegation: false
|
lab-games-02 ansible_host=lab-games-01.bunny-lab.io
|
||||||
ansible_port: 5986
|
bunny-docker-01 ansible_host=192.168.3.12
|
||||||
ansible_winrm_transport: ntlm
|
mail ansible_host=mail.bunny-lab.io
|
||||||
ansible_winrm_server_cert_validation: ignore
|
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
|
||||||
```jsx title="(LINUX) Unsorted Devices"
|
lab-auth-01 ansible_host=192.168.3.18
|
||||||
Name: (LINUX) Unsorted Devices
|
lab-auth-02 ansible_host=192.168.3.20
|
||||||
Host(s): CLSTR-COMPUTE-01 @ 192.168.3.50
|
container-node-01 ansible_host=192.168.3.19
|
||||||
Host(s): CLSTR-COMPUTE-02 @ 192.168.3.51
|
lab-dc-01 ansible_host=192.168.3.25
|
||||||
|
lab-dc-02 ansible_host=192.168.3.26
|
||||||
Variables:
|
lab-iris-01 ansible_host=192.168.3.27
|
||||||
---
|
lab-games-01 ansible_host=192.168.3.28
|
||||||
None
|
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
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# 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
|
||||||
```
|
```
|
Reference in New Issue
Block a user