initial project commit

This commit is contained in:
Chris Hammer 2023-05-10 15:56:22 -04:00
commit 42baa52684
11 changed files with 8225 additions and 0 deletions

14
.ansible-lint Normal file
View File

@ -0,0 +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:
- ""

20
ansible.cfg Normal file
View File

@ -0,0 +1,20 @@
[defaults]
gathering = smart
gather_timeout = 300
fact_path = facts.d
fact_caching = jsonfile
fact_caching_connection = facts.d
fact_caching_timeout = 300
retry_files_enabled = False
forks = 40
timeout = 30
host_key_checking = False
display_skipped_hosts = False
bin_ansible_callbacks = True
callback_whitelist = ansible.posix.profile_tasks, ansible.posix.timer
deprecation_warnings = False
[ssh_connection]
pipelining = True
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o PreferredAuthentications=publickey

8078
facts.d/localhost Normal file

File diff suppressed because it is too large Load Diff

3
includes/inc1.yml Normal file
View File

@ -0,0 +1,3 @@
- name: Inc1
ansible.builtin.debug:
msg: inc1

3
includes/inc2.yml Normal file
View File

@ -0,0 +1,3 @@
- name: Inc2
ansible.builtin.debug:
msg: inc2

7
includes/inc3.yml Normal file
View File

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

3
includes/inc4.yml Normal file
View File

@ -0,0 +1,3 @@
- name: Inc4
ansible.builtin.debug:
msg: inc4

3
includes/inc5.yml Normal file
View File

@ -0,0 +1,3 @@
- name: Inc5
ansible.builtin.debug:
msg: inc5

29
test_includes.yml Normal file
View File

@ -0,0 +1,29 @@
- name: Test Includes Performance
hosts: localhost
connection: local
gather_facts: false
# - name: Install/Remediate/Upgrade Product Functionality
# include_tasks: ../tasks/products/products-install.yml
# loop: "{{ install_products }}"
# loop_control:
# loop_var: install_product
vars:
install_products:
- inc1
- inc2
- inc3
- inc4
- inc5
tasks:
- name: Debug upgrade
ansible.builtin.debug:
msg: "y0"
- name: Includes on loop
ansible.builtin.include_tasks: "includes/{{ item }}.yml"
loop: "{{ install_products }}"

29
test_includes_loop.yml Normal file
View File

@ -0,0 +1,29 @@
- name: Test Includes Performance
hosts: localhost
connection: local
gather_facts: false
# - name: Install/Remediate/Upgrade Product Functionality
# include_tasks: ../tasks/products/products-install.yml
# loop: "{{ install_products }}"
# loop_control:
# loop_var: install_product
vars:
install_products:
- inc1
- inc2
- inc3
- inc4
- inc5
tasks:
- name: Debug upgrade
ansible.builtin.debug:
msg: "y0"
- name: Includes on loop
ansible.builtin.include_tasks: "includes/{{ item }}.yml"
loop: "{{ install_products }}"

36
test_includes_no_loop.yml Normal file
View File

@ -0,0 +1,36 @@
- name: Test Includes Performance
hosts: localhost
connection: local
gather_facts: false
# - name: Install/Remediate/Upgrade Product Functionality
# include_tasks: ../tasks/products/products-install.yml
# loop: "{{ install_products }}"
# loop_control:
# loop_var: install_product
vars:
install_products:
- inc1
- inc2
- inc3
- inc4
- inc5
tasks:
- name: Include Inc1
ansible.builtin.include_tasks: "includes/inc1.yml"
- name: Include Inc2
ansible.builtin.include_tasks: "includes/inc2.yml"
- name: Include Inc3
ansible.builtin.include_tasks: "includes/inc3.yml"
- name: Include Inc4
ansible.builtin.include_tasks: "includes/inc4.yml"
- name: Include Inc5
ansible.builtin.include_tasks: "includes/inc5.yml"