fix stuffs

This commit is contained in:
Chris Hammer 2023-05-10 23:42:42 -04:00
parent 1509952984
commit 869261db97
6 changed files with 122 additions and 25 deletions

View File

@ -1,14 +1,14 @@
# skip_list:
# - yaml[truthy]
# - yaml[colons]
# - no-changed-when
# - line-length
# - yaml[empty-lines]
# - name[template]
# - yaml[comments]
# - meta-incorrect
# - jinja[spacing]
# - yaml[line-length]
skip_list: skip_list:
- "" - yaml[truthy]
- yaml[colons]
- no-changed-when
- line-length
- yaml[empty-lines]
- name[template]
- yaml[comments]
- meta-incorrect
- jinja[spacing]
- yaml[line-length]
# skip_list:
# - ""

View File

@ -1,4 +1,5 @@
[defaults] [defaults]
inventory = hosts
gathering = smart gathering = smart
gather_timeout = 300 gather_timeout = 300
fact_path = facts.d fact_path = facts.d

104
hosts Normal file
View File

@ -0,0 +1,104 @@
# Lab Environment Inventory
#################################################
#
# Configuration : lab_hosts
# Template Version : 1.0-220908.1055
#
# Chris Hammer <chris@thezengarden.net>
#################################################
#########################
# Environment Overview #
# -------------------- #
# KEY: #
# Node :: Group :: IP #
#########################
# lab-tower-1 :: aap_lab_nodes :: 10.10.42.225 :: zg-vm-dev3
# lab-tower-2 :: aap_lab_nodes :: 10.10.42.228 :: zg-vm-dev
# lab-tower-db-1 :: aap_lab_db :: 10.10.42.230 :: zg-vm-dev2
# lab-isolated-1 :: aap_lab_isoexec :: 10.10.42.245 :: zg-vm-dev
# lab-isolated-2 :: aap_lab_isoexec :: 10.10.42.224 :: zg-vm-dev2
# lab-isolated-3 :: aap_lab_isoexec :: 10.10.42.136 :: zg-vm-dev3
# lab-dev-1 :: unassigned :: 10.10.42.235 :: zg-vm-dev
# lab-dev-2 :: unassigned :: 10.10.42.203 :: zg-vm-dev2
# lab-dev-3 :: unassigned :: 10.10.42.218 :: zg-vm-dev3
# lab-dev-4 :: unassigned :: 10.10.42.183 :: zg-vm-dev
# lab-dev-5 :: unassigned :: 10.10.42.175 :: zg-vm-dev2
# lab-hub-1 :: unassigned :: 10.10.42.132 :: zg-vm-dev2
###################
### HOST GROUPS ###
###################
[aap_lab_nodes]
lab-tower-1 ansible_host=10.10.42.225
lab-tower-2 ansible_host=10.10.42.228
[aap_lab_isoexec]
lab-isolated-1 ansible_host=10.10.42.245
lab-isolated-2 ansible_host=10.10.42.224
lab-isolated-3 ansible_host=10.10.42.136
[aap_lab_dev]
[aap_lab_test]
[aap_lab_prod]
[aap_lab_db]
lab-tower-db-1 ansible_host=10.10.42.230
[aap_lab_control_nodes]
[aap_lab_dhcp]
[grafana]
[prometheus]
[unassigned]
lab-dev-1 ansible_host=10.10.42.235
lab-dev-2 ansible_host=10.10.42.203
lab-dev-3 ansible_host=10.10.42.218
lab-dev-4 ansible_host=10.10.42.183
lab-dev-5 ansible_host=10.10.42.175
lab-hub-1 ansible_host=10.10.42.132
#################
### SUBGROUPS ###
#################
[aap_lab__all__envs:children]
aap_lab_dev
aap_lab_test
aap_lab_prod
aap_lab_db
aap_lab_dhcp
unassigned
[aap_lab__all__envs:vars]
ansible_user=root
[aap_lab__all__nodes:children]
aap_lab_nodes
aap_lab_isoexec
aap_lab_dev
aap_lab_test
aap_lab_prod
aap_lab_db
aap_lab_control_nodes
aap_lab_dhcp
grafana
prometheus
unassigned
[aap_lab__all__nodes:vars]
ansible_user=root
# vars for all hosts/groups
[all:vars]

View File

@ -1,7 +1,3 @@
- name: Inc3 - name: Inc3
ansible.builtin.debug: ansible.builtin.debug:
msg: inc3 msg: inc3
- name: Package Facts - Inc3
ansible.builtin.package_facts:

View File

@ -1,6 +1,6 @@
- name: Test Includes Performance - name: Test Includes Performance
hosts: localhost hosts: all
connection: local become: false
gather_facts: false gather_facts: false
@ -20,10 +20,6 @@
tasks: tasks:
- name: Debug upgrade
ansible.builtin.debug:
msg: "y0"
- name: Includes on loop - name: Includes on loop
ansible.builtin.include_tasks: "includes/{{ item }}.yml" ansible.builtin.include_tasks: "includes/{{ item }}.yml"
loop: "{{ install_products }}" loop: "{{ install_products }}"

View File

@ -1,6 +1,6 @@
- name: Test Includes Performance - name: Test Includes Performance
hosts: localhost hosts: all
connection: local become: false
gather_facts: false gather_facts: false