clean up product demo readme to generate on flat-files
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
connection: local
|
||||
|
||||
tasks:
|
||||
- name: install demo
|
||||
debug:
|
||||
msg: "{{item.key}}"
|
||||
loop: "{{ hostvars['localhost']|dict2items }}"
|
||||
when: "item.key[:8] != 'ansible_'"
|
||||
# - name: install demo
|
||||
# include_role:
|
||||
# name: "../roles/generate_readme"
|
||||
# debug:
|
||||
# msg: "{{item}}"
|
||||
# loop: "{{dict(hostvars[inventory_hostname]|dictsort|rejectattr('0', 'match', 'ansible_')|selectattr('1.name', 'defined'))|dict2items}}"
|
||||
|
||||
- name: install demo
|
||||
include_role:
|
||||
name: "../roles/generate_readme"
|
||||
|
||||
@@ -8,7 +8,21 @@ deploy_application:
|
||||
playbook: "playbooks/01_deploy_application.yml"
|
||||
credential: "Workshop Credential"
|
||||
survey_enabled: yes
|
||||
survey_spec: "{{survey_deploy_application}}"
|
||||
survey_spec:
|
||||
name: Deploy application survey
|
||||
description: Which application do you want to install?
|
||||
spec:
|
||||
- type: multiplechoice
|
||||
question_name: Select a command you would like to execute
|
||||
question_description: select the application
|
||||
variable: application
|
||||
required: true
|
||||
default: httpd
|
||||
choices:
|
||||
- httpd
|
||||
- nginx
|
||||
- htop
|
||||
- gdb
|
||||
video: "https://www.youtube.com/watch?v=pU8ZgSBuEJw&list=PLdu06OJoEf2bp-PNtxPP_2n7Avkax8TED"
|
||||
project:
|
||||
name: "Ansible official demo project"
|
||||
@@ -19,18 +33,3 @@ deploy_application:
|
||||
workshop_type:
|
||||
- f5
|
||||
- rhel
|
||||
survey_deploy_application:
|
||||
name: Deploy application survey
|
||||
description: Which application do you want to install?
|
||||
spec:
|
||||
- type: multiplechoice
|
||||
question_name: Select a command you would like to execute
|
||||
question_description: select the application
|
||||
variable: application
|
||||
required: true
|
||||
default: httpd
|
||||
choices:
|
||||
- httpd
|
||||
- nginx
|
||||
- htop
|
||||
- gdb
|
||||
|
||||
@@ -8,7 +8,14 @@ patching:
|
||||
playbook: "playbooks/02_patching.yml"
|
||||
credential: "Workshop Credential"
|
||||
survey_enabled: yes
|
||||
survey_spec: "{{survey_patching}}"
|
||||
survey_spec:
|
||||
name: ''
|
||||
description: ''
|
||||
spec:
|
||||
- question_name: 'Enter host to configure'
|
||||
type: text
|
||||
variable: HOSTS
|
||||
required: false
|
||||
project:
|
||||
name: "Ansible official demo project"
|
||||
description: "prescriptive demos from Red Hat Management Buisness Unit"
|
||||
@@ -18,11 +25,3 @@ patching:
|
||||
workshop_type:
|
||||
- f5
|
||||
- rhel
|
||||
survey_patching:
|
||||
name: ''
|
||||
description: ''
|
||||
spec:
|
||||
- question_name: 'Enter host to configure'
|
||||
type: text
|
||||
variable: HOSTS
|
||||
required: false
|
||||
|
||||
@@ -8,7 +8,42 @@ hardening:
|
||||
playbook: "playbooks/03_hardening.yml"
|
||||
credential: "Workshop Credential"
|
||||
survey_enabled: yes
|
||||
survey_spec: "{{survey_hardening}}"
|
||||
survey_spec:
|
||||
name: ''
|
||||
description: ''
|
||||
spec:
|
||||
- question_name: 'Enter host to configure'
|
||||
type: text
|
||||
variable: HOSTS
|
||||
required: false
|
||||
- question_name: Configure Firewall?
|
||||
type: multiplechoice
|
||||
variable: harden_firewall
|
||||
required: false
|
||||
choices:
|
||||
- 'Yes'
|
||||
- 'No'
|
||||
- question_name: Configure Time?
|
||||
type: multiplechoice
|
||||
variable: harden_time
|
||||
required: false
|
||||
choices:
|
||||
- 'Yes'
|
||||
- 'No'
|
||||
- question_name: Harden SSH?
|
||||
type: multiplechoice
|
||||
variable: harden_ssh
|
||||
required: false
|
||||
choices:
|
||||
- 'Yes'
|
||||
- 'No'
|
||||
- question_name: PCI Baseline?
|
||||
type: multiplechoice
|
||||
variable: harden_pci
|
||||
required: false
|
||||
choices:
|
||||
- 'Yes'
|
||||
- 'No'
|
||||
project:
|
||||
name: "Ansible official demo project"
|
||||
description: "prescriptive demos from Red Hat Management Buisness Unit"
|
||||
@@ -18,39 +53,3 @@ hardening:
|
||||
workshop_type:
|
||||
- f5
|
||||
- rhel
|
||||
survey_hardening:
|
||||
name: ''
|
||||
description: ''
|
||||
spec:
|
||||
- question_name: 'Enter host to configure'
|
||||
type: text
|
||||
variable: HOSTS
|
||||
required: false
|
||||
- question_name: Configure Firewall?
|
||||
type: multiplechoice
|
||||
variable: harden_firewall
|
||||
required: false
|
||||
choices:
|
||||
- 'Yes'
|
||||
- 'No'
|
||||
- question_name: Configure Time?
|
||||
type: multiplechoice
|
||||
variable: harden_time
|
||||
required: false
|
||||
choices:
|
||||
- 'Yes'
|
||||
- 'No'
|
||||
- question_name: Harden SSH?
|
||||
type: multiplechoice
|
||||
variable: harden_ssh
|
||||
required: false
|
||||
choices:
|
||||
- 'Yes'
|
||||
- 'No'
|
||||
- question_name: PCI Baseline?
|
||||
type: multiplechoice
|
||||
variable: harden_pci
|
||||
required: false
|
||||
choices:
|
||||
- 'Yes'
|
||||
- 'No'
|
||||
|
||||
Reference in New Issue
Block a user