cleaning up variables

This commit is contained in:
ipvsean
2020-05-14 15:27:05 -04:00
parent a0fa8bffd4
commit dcdc1d88ba
15 changed files with 15 additions and 14 deletions

Binary file not shown.

View File

@@ -1,7 +1,7 @@
--- ---
namespace: ansible namespace: ansible
name: product_demos name: product_demos
version: 1.0.7 version: 1.0.8
readme: README.md readme: README.md
authors: authors:

View File

@@ -2,6 +2,7 @@
- name: set facts from role vars - name: set facts from role vars
set_fact: set_fact:
demo_list: "{{ (dict(vars|dictsort|rejectattr('0', 'match', 'ansible_')|selectattr('1.name', 'defined')|selectattr('1.workshop_type', 'defined'))|dict2items)|map(attribute='key')|list }}" demo_list: "{{ (dict(vars|dictsort|rejectattr('0', 'match', 'ansible_')|selectattr('1.name', 'defined')|selectattr('1.workshop_type', 'defined'))|dict2items)|map(attribute='key')|list }}"
full_demo_info: "{{ (dict(vars|dictsort|rejectattr('0', 'match', 'ansible_')|selectattr('1.name', 'defined')|selectattr('1.workshop_type', 'defined'))|dict2items) }}"
- name: provide info to terminal window - name: provide info to terminal window
debug: debug:
@@ -21,7 +22,7 @@
- name: install all job templates - name: install all job templates
include_tasks: job_template_loop.yml include_tasks: job_template_loop.yml
loop: "{{ dict(vars|dictsort|rejectattr('0', 'match', 'ansible_')|selectattr('1.name', 'defined'))|dict2items }}" loop: "{{ full_demo_info }}"
when: demo == "all" when: demo == "all"
- name: install single job template - name: install single job template

View File

@@ -2,7 +2,7 @@
developer_report: developer_report:
author: "Sean Cavanaugh" author: "Sean Cavanaugh"
category: developer category: developer
name: "Create Developer Report" name: "SERVER / Create Developer Report"
description: > description: >
'Create HTML report using 'Create HTML report using
<a href="https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#variables-discovered-from-systems-facts">Ansible facts</a>' <a href="https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#variables-discovered-from-systems-facts">Ansible facts</a>'

View File

@@ -2,7 +2,7 @@
debug_info: debug_info:
author: "Will Tome" author: "Will Tome"
category: infrastructure category: infrastructure
name: "SERVER / Gather Debug Info" name: "INFRASTRUCTURE / Gather Debug Info"
description: "provide info for memory and CPU usage for specified systems" description: "provide info for memory and CPU usage for specified systems"
job_type: "run" job_type: "run"
inventory: "Workshop Inventory" inventory: "Workshop Inventory"

View File

@@ -2,7 +2,7 @@
deploy_application: deploy_application:
author: "Sean Cavanaugh" author: "Sean Cavanaugh"
category: infrastructure category: infrastructure
name: "Deploy Application (survey)" name: "INFRASTRUCTURE / Deploy Application (survey)"
description: "install yum applications on Linux with a survey" description: "install yum applications on Linux with a survey"
job_type: "run" job_type: "run"
inventory: "Workshop Inventory" inventory: "Workshop Inventory"

View File

@@ -2,7 +2,7 @@
grant_sudo: grant_sudo:
author: "Will Tome" author: "Will Tome"
category: infrastructure category: infrastructure
name: "SERVER / Grant Sudo" name: "INFRASTRUCTURE / Grant Sudo"
description: "grant sudo privledges for specified time via survey" description: "grant sudo privledges for specified time via survey"
job_type: "run" job_type: "run"
inventory: "Workshop Inventory" inventory: "Workshop Inventory"

View File

@@ -2,7 +2,7 @@
insights: insights:
author: "Sean Cavanaugh" author: "Sean Cavanaugh"
category: infrastructure category: infrastructure
name: "SERVER / Red Hat Insights" name: "INFRASTRUCTURE / Red Hat Insights"
description: "install and configure Red Hat Insights" description: "install and configure Red Hat Insights"
job_type: "run" job_type: "run"
inventory: "Workshop Inventory" inventory: "Workshop Inventory"

View File

@@ -2,7 +2,7 @@
patching: patching:
author: "Will Tome" author: "Will Tome"
category: infrastructure category: infrastructure
name: "SERVER / Patching" name: "INFRASTRUCTURE / Patching"
description: "patching for Linux servers" description: "patching for Linux servers"
job_type: "run" job_type: "run"
inventory: "Workshop Inventory" inventory: "Workshop Inventory"

View File

@@ -2,7 +2,7 @@
fact_scan: fact_scan:
author: "Will Tome" author: "Will Tome"
category: infrastructure category: infrastructure
name: "SERVER / Fact Scan" name: "INFRASTRUCTURE / Fact Scan"
description: "scan facts for Linux and Windows systems" description: "scan facts for Linux and Windows systems"
job_type: "run" job_type: "run"
inventory: "Workshop Inventory" inventory: "Workshop Inventory"

View File

@@ -2,7 +2,7 @@
security_patching: security_patching:
author: "Will Tome" author: "Will Tome"
category: infrastructure category: infrastructure
name: "SERVER / Security Patching" name: "INFRASTRUCTURE / Security Patching"
description: "upgrade all yum packages for security related except kernel" description: "upgrade all yum packages for security related except kernel"
job_type: "run" job_type: "run"
inventory: "Workshop Inventory" inventory: "Workshop Inventory"

View File

@@ -2,7 +2,7 @@
windows_iis: windows_iis:
author: "Colin McNaughton" author: "Colin McNaughton"
category: infrastructure category: infrastructure
name: "Windows IIS Server" name: "SERVER / Windows IIS Server"
description: "install webserver on Windows Server with a survey" description: "install webserver on Windows Server with a survey"
job_type: "run" job_type: "run"
inventory: "Workshop Inventory" inventory: "Workshop Inventory"

View File

@@ -3,7 +3,7 @@ f5_bigip_workflow:
workflow: true workflow: true
author: 'Sean Cavanaugh' author: 'Sean Cavanaugh'
category: network category: network
name: 'WORKFLOW - F5 BIG-IP' name: 'NETWORK / WORKFLOW - F5 BIG-IP'
description: 'Workflow for F5 BIG-IP to setup a VIP (Virtual IP) load balancer between two RHEL webservers' description: 'Workflow for F5 BIG-IP to setup a VIP (Virtual IP) load balancer between two RHEL webservers'
organization: 'Default' organization: 'Default'
workshop_type: workshop_type:

View File

@@ -2,7 +2,7 @@
hardening: hardening:
author: "Will Tome" author: "Will Tome"
category: security category: security
name: "SERVER / Hardening" name: "SECURITY / Hardening"
description: "hardening for Linux servers" description: "hardening for Linux servers"
job_type: "run" job_type: "run"
inventory: "Workshop Inventory" inventory: "Workshop Inventory"

View File

@@ -2,7 +2,7 @@
openscap: openscap:
author: "Sean Cavanaugh" author: "Sean Cavanaugh"
category: security category: security
name: "Create Openscap Report" name: "SECURITY / Create Openscap Report"
description: "Create HTML report using SCAP Security Guide (SSG)" description: "Create HTML report using SCAP Security Guide (SSG)"
job_type: "run" job_type: "run"
inventory: "Workshop Inventory" inventory: "Workshop Inventory"