@@ -36,11 +36,17 @@ controller_inventory_sources:
|
|||||||
- tag:Name
|
- tag:Name
|
||||||
compose:
|
compose:
|
||||||
ansible_host: public_ip_address
|
ansible_host: public_ip_address
|
||||||
|
ansible_user: 'ec2-user'
|
||||||
groups:
|
groups:
|
||||||
cloud_aws: true
|
cloud_aws: true
|
||||||
|
os_linux: tags.blueprint.startswith('rhel')
|
||||||
keyed_groups:
|
keyed_groups:
|
||||||
- key: platform
|
- key: platform
|
||||||
prefix: os
|
prefix: os
|
||||||
|
- key: tags.blueprint
|
||||||
|
prefix: blueprint
|
||||||
|
- key: tags.owner
|
||||||
|
prefix: owner
|
||||||
|
|
||||||
#- name: Azure Inventory
|
#- name: Azure Inventory
|
||||||
# organization: Default
|
# organization: Default
|
||||||
@@ -70,6 +76,9 @@ controller_templates:
|
|||||||
playbook: cloud/create_infra.yml
|
playbook: cloud/create_infra.yml
|
||||||
inventory: Workshop Inventory
|
inventory: Workshop Inventory
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
extra_vars:
|
extra_vars:
|
||||||
aws_region: us-east-2
|
aws_region: us-east-2
|
||||||
@@ -88,6 +97,7 @@ controller_templates:
|
|||||||
type: textarea
|
type: textarea
|
||||||
required: false
|
required: false
|
||||||
variable: aws_public_key
|
variable: aws_public_key
|
||||||
|
|
||||||
- name: Cloud / Create VM
|
- name: Cloud / Create VM
|
||||||
job_type: run
|
job_type: run
|
||||||
organization: Default
|
organization: Default
|
||||||
@@ -99,6 +109,9 @@ controller_templates:
|
|||||||
playbook: cloud/create_vm.yml
|
playbook: cloud/create_vm.yml
|
||||||
inventory: Workshop Inventory
|
inventory: Workshop Inventory
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
extra_vars:
|
extra_vars:
|
||||||
aws_region: us-east-2
|
aws_region: us-east-2
|
||||||
@@ -130,6 +143,7 @@ controller_templates:
|
|||||||
- windows_full
|
- windows_full
|
||||||
- rhel8
|
- rhel8
|
||||||
- rhel7
|
- rhel7
|
||||||
|
|
||||||
- name: Cloud / Destroy VM
|
- name: Cloud / Destroy VM
|
||||||
job_type: run
|
job_type: run
|
||||||
organization: Default
|
organization: Default
|
||||||
@@ -141,6 +155,9 @@ controller_templates:
|
|||||||
playbook: cloud/destroy_vm.yml
|
playbook: cloud/destroy_vm.yml
|
||||||
inventory: Workshop Inventory
|
inventory: Workshop Inventory
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
extra_vars:
|
extra_vars:
|
||||||
aws_region: us-east-2
|
aws_region: us-east-2
|
||||||
@@ -152,4 +169,3 @@ controller_templates:
|
|||||||
type: text
|
type: text
|
||||||
variable: HOSTS
|
variable: HOSTS
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ collections:
|
|||||||
- containers.podman
|
- containers.podman
|
||||||
#windows
|
#windows
|
||||||
- chocolatey.chocolatey
|
- chocolatey.chocolatey
|
||||||
- community.windows
|
- name: community.windows
|
||||||
|
version: 1.10.0
|
||||||
- name: ansible.windows
|
- name: ansible.windows
|
||||||
version: 1.9.0
|
version: 1.9.0
|
||||||
#cloud
|
#cloud
|
||||||
|
|||||||
13
feedback.yml
Normal file
13
feedback.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
gather_facts: no
|
||||||
|
tasks:
|
||||||
|
- name: Submit Feedback
|
||||||
|
ansible.builtin.uri:
|
||||||
|
url: https://docs.google.com/forms/d/e/1FAIpQLSfTq7Dm0hw0sOthHTH2F6wbwwJc-fsJPbn72IZX4CY7p4uGBg/formResponse
|
||||||
|
method: POST
|
||||||
|
body: "ifq&entry.1139138403={{ email }} &entry.735882959={{ feedback }}&sumbit=Submit"
|
||||||
|
|
||||||
|
- name: Thank you
|
||||||
|
debug:
|
||||||
|
msg: Thank you for your feedback!
|
||||||
@@ -3,6 +3,12 @@
|
|||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: check for vars
|
||||||
|
assert:
|
||||||
|
that:
|
||||||
|
- org_id is defined
|
||||||
|
- activation_key is defined
|
||||||
|
|
||||||
- name: set hostname
|
- name: set hostname
|
||||||
hostname:
|
hostname:
|
||||||
name: "{{ inventory_hostname | regex_replace('_','-')}}"
|
name: "{{ inventory_hostname | regex_replace('_','-')}}"
|
||||||
@@ -58,4 +64,4 @@
|
|||||||
insights_tags:
|
insights_tags:
|
||||||
env: "{{ env }}"
|
env: "{{ env }}"
|
||||||
purpose: demo
|
purpose: demo
|
||||||
group: "{{ ansible_group }}"
|
group: "{{ ansible_group }}"
|
||||||
|
|||||||
@@ -57,6 +57,9 @@ controller_templates:
|
|||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "linux/ec2_register.yml"
|
playbook: "linux/ec2_register.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
@@ -83,12 +86,16 @@ controller_templates:
|
|||||||
type: text
|
type: text
|
||||||
variable: ansible_group
|
variable: ansible_group
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
- name: "LINUX / Troubleshoot"
|
- name: "LINUX / Troubleshoot"
|
||||||
job_type: run
|
job_type: run
|
||||||
inventory: "Workshop Inventory"
|
inventory: "Workshop Inventory"
|
||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "linux/tshoot.yml"
|
playbook: "linux/tshoot.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
use_fact_cache: true
|
use_fact_cache: true
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
@@ -101,12 +108,16 @@ controller_templates:
|
|||||||
type: text
|
type: text
|
||||||
variable: HOSTS
|
variable: HOSTS
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
- name: "LINUX / Temporary Sudo"
|
- name: "LINUX / Temporary Sudo"
|
||||||
job_type: run
|
job_type: run
|
||||||
inventory: "Workshop Inventory"
|
inventory: "Workshop Inventory"
|
||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "linux/temp_sudo.yml"
|
playbook: "linux/temp_sudo.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
@@ -127,14 +138,17 @@ controller_templates:
|
|||||||
variable: sudo_time
|
variable: sudo_time
|
||||||
default: 10
|
default: 10
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
- name: "LINUX / Patching"
|
- name: "LINUX / Patching"
|
||||||
job_type: run
|
job_type: check
|
||||||
inventory: "Workshop Inventory"
|
inventory: "Workshop Inventory"
|
||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "linux/patching.yml"
|
playbook: "linux/patching.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
use_fact_cache: true
|
use_fact_cache: true
|
||||||
job_type: check
|
|
||||||
ask_job_type_on_launch: yes
|
ask_job_type_on_launch: yes
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
@@ -147,12 +161,16 @@ controller_templates:
|
|||||||
type: text
|
type: text
|
||||||
variable: HOSTS
|
variable: HOSTS
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
- name: "LINUX / Start Service"
|
- name: "LINUX / Start Service"
|
||||||
job_type: run
|
job_type: run
|
||||||
inventory: "Workshop Inventory"
|
inventory: "Workshop Inventory"
|
||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "linux/service_start.yml"
|
playbook: "linux/service_start.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
use_fact_cache: true
|
use_fact_cache: true
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
@@ -169,12 +187,16 @@ controller_templates:
|
|||||||
type: text
|
type: text
|
||||||
variable: service_name
|
variable: service_name
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
- name: "LINUX / Stop Service"
|
- name: "LINUX / Stop Service"
|
||||||
job_type: run
|
job_type: run
|
||||||
inventory: "Workshop Inventory"
|
inventory: "Workshop Inventory"
|
||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "linux/service_stop.yml"
|
playbook: "linux/service_stop.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
use_fact_cache: true
|
use_fact_cache: true
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
@@ -191,12 +213,16 @@ controller_templates:
|
|||||||
type: text
|
type: text
|
||||||
variable: service_name
|
variable: service_name
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
- name: "LINUX / Run Shell Script"
|
- name: "LINUX / Run Shell Script"
|
||||||
job_type: run
|
job_type: run
|
||||||
inventory: "Workshop Inventory"
|
inventory: "Workshop Inventory"
|
||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "linux/run_script.yml"
|
playbook: "linux/run_script.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
@@ -212,21 +238,29 @@ controller_templates:
|
|||||||
type: textarea
|
type: textarea
|
||||||
variable: shell_script
|
variable: shell_script
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
- name: "LINUX / Fact Scan"
|
- name: "LINUX / Fact Scan"
|
||||||
project: Fact Scan
|
project: Fact Scan
|
||||||
playbook: scan_facts.yml
|
playbook: scan_facts.yml
|
||||||
inventory: Workshop Inventory
|
inventory: Workshop Inventory
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
ask_limit_on_launch: true
|
ask_limit_on_launch: true
|
||||||
use_fact_cache: true
|
use_fact_cache: true
|
||||||
credentials:
|
credentials:
|
||||||
- Workshop Credential
|
- Workshop Credential
|
||||||
|
|
||||||
- name: "LINUX / Podman Webserver"
|
- name: "LINUX / Podman Webserver"
|
||||||
job_type: run
|
job_type: run
|
||||||
inventory: "Workshop Inventory"
|
inventory: "Workshop Inventory"
|
||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "linux/podman.yml"
|
playbook: "linux/podman.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
@@ -242,12 +276,16 @@ controller_templates:
|
|||||||
type: textarea
|
type: textarea
|
||||||
variable: message
|
variable: message
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
- name: "LINUX / System Roles"
|
- name: "LINUX / System Roles"
|
||||||
job_type: run
|
job_type: run
|
||||||
inventory: "Workshop Inventory"
|
inventory: "Workshop Inventory"
|
||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "linux/system_roles.yml"
|
playbook: "linux/system_roles.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
diff_mode: yes
|
diff_mode: yes
|
||||||
ask_job_type_on_launch: yes
|
ask_job_type_on_launch: yes
|
||||||
extra_vars:
|
extra_vars:
|
||||||
@@ -263,12 +301,16 @@ controller_templates:
|
|||||||
type: text
|
type: text
|
||||||
variable: HOSTS
|
variable: HOSTS
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
- name: "LINUX / Compliance"
|
- name: "LINUX / Compliance"
|
||||||
job_type: run
|
job_type: run
|
||||||
inventory: "Workshop Inventory"
|
inventory: "Workshop Inventory"
|
||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "linux/compliance.yml"
|
playbook: "linux/compliance.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
extra_vars:
|
extra_vars:
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ controller_templates:
|
|||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
project: Network Golden Configs
|
project: Network Golden Configs
|
||||||
playbook: main.yml
|
playbook: main.yml
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
ask_limit_on_launch: true
|
ask_limit_on_launch: true
|
||||||
use_fact_cache: yes
|
use_fact_cache: yes
|
||||||
survey:
|
survey:
|
||||||
|
|||||||
@@ -1,13 +1,52 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
vars_files:
|
|
||||||
- "{{demo}}/setup.yml"
|
|
||||||
vars:
|
|
||||||
controller_validate_certs: false
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Setup Components
|
- name: Default Components
|
||||||
|
include_role:
|
||||||
|
name: "redhat_cop.controller_configuration.{{ item }}"
|
||||||
|
loop: "{{ controller_components }}"
|
||||||
|
vars:
|
||||||
|
controller_components:
|
||||||
|
- notification_templates
|
||||||
|
- job_templates
|
||||||
|
controller_notifications:
|
||||||
|
- name: Telemetry
|
||||||
|
organization: Default
|
||||||
|
notification_type: webhook
|
||||||
|
notification_configuration:
|
||||||
|
url: https://script.google.com/macros/s/AKfycbzxUObvCJ6ZbzfJyicw4RvxlGE3AZdrK4AR5-TsedCYd7O-rtTOVjvsRvqyb3rx6B0g8g/exec
|
||||||
|
http_method: POST
|
||||||
|
headers: {}
|
||||||
|
controller_templates:
|
||||||
|
- name: "FEEDBACK"
|
||||||
|
job_type: run
|
||||||
|
inventory: "Workshop Inventory"
|
||||||
|
project: "Ansible official demo project"
|
||||||
|
playbook: "feedback.yml"
|
||||||
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
|
survey_enabled: true
|
||||||
|
survey:
|
||||||
|
name: ''
|
||||||
|
description: ''
|
||||||
|
spec:
|
||||||
|
- question_name: Name/Email/Contact
|
||||||
|
type: text
|
||||||
|
variable: email
|
||||||
|
required: true
|
||||||
|
- question_name: Issue or Feedback
|
||||||
|
type: textarea
|
||||||
|
variable: feedback
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- name: "include configuration for {{ demo }}"
|
||||||
|
include_vars: "{{demo}}/setup.yml"
|
||||||
|
|
||||||
|
- name: Demo Components
|
||||||
include_role:
|
include_role:
|
||||||
name: "redhat_cop.controller_configuration.{{ item }}"
|
name: "redhat_cop.controller_configuration.{{ item }}"
|
||||||
loop: "{{ controller_components }}"
|
loop: "{{ controller_components }}"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: Arbitrary PowerShell
|
- name: Run PowerShell
|
||||||
hosts: "{{ HOSTS | default('windows') }}"
|
hosts: "{{ HOSTS | default('windows') }}"
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
vars:
|
vars:
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
name: SecurityPolicyDSC
|
name: SecurityPolicyDSC
|
||||||
module_version: 2.10.0.0
|
module_version: 2.10.0.0
|
||||||
state: present
|
state: present
|
||||||
|
accept_license: yes
|
||||||
|
|
||||||
- name: Set password history
|
- name: Set password history
|
||||||
ansible.windows.win_dsc:
|
ansible.windows.win_dsc:
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
hosts: "{{ HOSTS | default('windows') }}"
|
hosts: "{{ HOSTS | default('windows') }}"
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
vars:
|
vars:
|
||||||
remote_dest: "C:\\sample_script.ps1"
|
remote_dest: "C:\\query_services.ps1"
|
||||||
tasks:
|
tasks:
|
||||||
- name: Copy script to remote
|
- name: Copy script to remote
|
||||||
ansible.windows.win_copy:
|
ansible.windows.win_copy:
|
||||||
src: "{{playbook_dir}}/sample_script.ps1"
|
src: "{{playbook_dir}}/query_services.ps1"
|
||||||
dest: "{{ remote_dest }}"
|
dest: "{{ remote_dest }}"
|
||||||
|
|
||||||
- name: Run Script
|
- name: Run Script
|
||||||
|
|||||||
@@ -19,6 +19,9 @@ controller_templates:
|
|||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "windows/install_iis.yml"
|
playbook: "windows/install_iis.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
@@ -43,6 +46,9 @@ controller_templates:
|
|||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "windows/patching.yml"
|
playbook: "windows/patching.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
@@ -86,6 +92,9 @@ controller_templates:
|
|||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "windows/windows_choco_multiple.yml"
|
playbook: "windows/windows_choco_multiple.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
@@ -104,6 +113,9 @@ controller_templates:
|
|||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "windows/windows_choco_specific.yml"
|
playbook: "windows/windows_choco_specific.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
@@ -119,12 +131,16 @@ controller_templates:
|
|||||||
type: text
|
type: text
|
||||||
variable: package_name
|
variable: package_name
|
||||||
required: true
|
required: true
|
||||||
- name: "WINDOWS / Arbitrary PowerShell"
|
|
||||||
|
- name: "WINDOWS / Run PowerShell"
|
||||||
job_type: run
|
job_type: run
|
||||||
inventory: "Workshop Inventory"
|
inventory: "Workshop Inventory"
|
||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "windows/arbitrary_powershell.yml"
|
playbook: "windows/powershell.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
@@ -136,18 +152,21 @@ controller_templates:
|
|||||||
type: text
|
type: text
|
||||||
variable: HOSTS
|
variable: HOSTS
|
||||||
required: false
|
required: false
|
||||||
- question_name: PowerShell Script (Default returns random cat fact)
|
- question_name: PowerShell Script
|
||||||
type: textarea
|
type: textarea
|
||||||
variable: ps_script
|
variable: ps_script
|
||||||
default: "(Invoke-RestMethod -Method 'GET' -Uri 'https://catfact.ninja/fact').fact"
|
default: "Get-Service | Where-Object -FilterScript {$_.Status -eq 'running'} | Select-Object -Property 'Name'"
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
- name: "WINDOWS / PowerShell Script"
|
- name: "WINDOWS / Query Services"
|
||||||
job_type: run
|
job_type: run
|
||||||
inventory: "Workshop Inventory"
|
inventory: "Workshop Inventory"
|
||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "windows/powershell_script.yml"
|
playbook: "windows/powershell_script.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
@@ -168,12 +187,15 @@ controller_templates:
|
|||||||
- 'Running'
|
- 'Running'
|
||||||
- 'Stopped'
|
- 'Stopped'
|
||||||
|
|
||||||
- name: "WINDOWS / PowerShell DSC configuring password requirements"
|
- name: "WINDOWS / Configuring Password Requirements"
|
||||||
job_type: run
|
job_type: run
|
||||||
inventory: "Workshop Inventory"
|
inventory: "Workshop Inventory"
|
||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "windows/powershell_dsc.yml"
|
playbook: "windows/powershell_dsc.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
@@ -186,12 +208,15 @@ controller_templates:
|
|||||||
variable: HOSTS
|
variable: HOSTS
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
- name: "ACTIVE DIRECTORY / Create Active Directory domain"
|
- name: "WINDOWS / AD /Create Domain"
|
||||||
job_type: run
|
job_type: run
|
||||||
inventory: "Workshop Inventory"
|
inventory: "Workshop Inventory"
|
||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "windows/active_directory/create_ad_domain.yml"
|
playbook: "windows/create_ad_domain.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
@@ -204,12 +229,15 @@ controller_templates:
|
|||||||
variable: HOSTS
|
variable: HOSTS
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
- name: "ACTIVE DIRECTORY / Helpdesk new user portal"
|
- name: "WINDOWS / AD / New User"
|
||||||
job_type: run
|
job_type: run
|
||||||
inventory: "Workshop Inventory"
|
inventory: "Workshop Inventory"
|
||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "windows/active_directory/helpdesk_new_user_portal.yml"
|
playbook: "windows/helpdesk_new_user_portal.yml"
|
||||||
execution_environment: Default execution environment
|
execution_environment: Default execution environment
|
||||||
|
notification_templates_started: Telemetry
|
||||||
|
notification_templates_success: Telemetry
|
||||||
|
notification_templates_error: Telemetry
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Workshop Credential"
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
@@ -244,4 +272,4 @@ controller_templates:
|
|||||||
type: text
|
type: text
|
||||||
variable: telephone_number
|
variable: telephone_number
|
||||||
default: 555-123456
|
default: 555-123456
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
@@ -5,14 +5,12 @@
|
|||||||
vars:
|
vars:
|
||||||
choco_packages:
|
choco_packages:
|
||||||
- name: nodejs
|
- name: nodejs
|
||||||
version: 13.0.0
|
|
||||||
- name: python
|
- name: python
|
||||||
version: 3.6.0
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install specific versions of packages sequentially
|
- name: Install specific versions of packages sequentially
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
version: "{{ item.version }}"
|
state: latest
|
||||||
loop: "{{ choco_packages }}"
|
loop: "{{ choco_packages }}"
|
||||||
|
|
||||||
- name: Check python version
|
- name: Check python version
|
||||||
|
|||||||
Reference in New Issue
Block a user