Powershell templates (#5)

Windows Powershell Demos
This commit is contained in:
MKletz
2022-02-23 11:01:02 -06:00
committed by GitHub
parent 2041667534
commit 788cf7b675
4 changed files with 92 additions and 0 deletions

View File

@@ -114,3 +114,52 @@ controller_templates:
type: text
variable: package_name
required: true
- name: "WINDOWS / Arbitrary PowerShell"
job_type: run
inventory: "Workshop Inventory"
project: "Ansible official demo project"
playbook: "windows/arbitrary_powershell.yml"
execution_environment: Default execution environment
credentials:
- "Workshop Credential"
survey_enabled: true
survey:
name: ''
description: ''
spec:
- question_name: Server Name or Pattern
type: text
variable: HOSTS
required: false
- question_name: PowerShell Script (Default returns random cat fact)
type: textarea
variable: ps_script
default: "(Invoke-RestMethod -Method 'GET' -Uri 'https://catfact.ninja/fact').fact"
required: true
- name: "WINDOWS / PowerShell Script"
job_type: run
inventory: "Workshop Inventory"
project: "Ansible official demo project"
playbook: "windows/powershell_script.yml"
execution_environment: Default execution environment
credentials:
- "Workshop Credential"
survey_enabled: true
survey:
name: ''
description: ''
spec:
- question_name: Server Name or Pattern
type: text
variable: HOSTS
required: false
- question_name: Service state to query?
type: multiplechoice
variable: service_state
required: false
default: 'Running'
choices:
- 'Running'
- 'Stopped'