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
name: product_demos
version: 1.0.7
version: 1.0.8
readme: README.md
authors:

View File

@@ -2,6 +2,7 @@
- name: set facts from role vars
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 }}"
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
debug:
@@ -21,7 +22,7 @@
- name: install all job templates
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"
- name: install single job template

View File

@@ -2,7 +2,7 @@
developer_report:
author: "Sean Cavanaugh"
category: developer
name: "Create Developer Report"
name: "SERVER / Create Developer Report"
description: >
'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>'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -3,7 +3,7 @@ f5_bigip_workflow:
workflow: true
author: 'Sean Cavanaugh'
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'
organization: 'Default'
workshop_type:

View File

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

View File

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