add notification
This commit is contained in:
@@ -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,12 +138,16 @@ 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: run
|
||||||
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
|
job_type: check
|
||||||
ask_job_type_on_launch: yes
|
ask_job_type_on_launch: yes
|
||||||
@@ -147,12 +162,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 +188,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 +214,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 +239,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 +277,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 +302,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:
|
||||||
|
|||||||
@@ -3,8 +3,18 @@
|
|||||||
gather_facts: no
|
gather_facts: no
|
||||||
vars_files:
|
vars_files:
|
||||||
- "{{demo}}/setup.yml"
|
- "{{demo}}/setup.yml"
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
controller_validate_certs: false
|
controller_validate_certs: false
|
||||||
|
default_components:
|
||||||
|
- controller_notifications
|
||||||
|
controller_notifications:
|
||||||
|
- name: Telemetry
|
||||||
|
organization: Default
|
||||||
|
notification_type: webhook
|
||||||
|
notification_configuration:
|
||||||
|
url: https://script.google.com/macros/s/AKfycbxSjCQ36cMWfWxG0dAjkL-gz-heiBcfLXFOOd0FV34JKXnagsCoAbOIa3q3Yr0YG91mHQ/exec
|
||||||
|
http_method: POST
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Setup Components
|
- name: Setup Components
|
||||||
@@ -12,7 +22,7 @@
|
|||||||
name: "redhat_cop.controller_configuration.{{ item }}"
|
name: "redhat_cop.controller_configuration.{{ item }}"
|
||||||
loop: "{{ controller_components }}"
|
loop: "{{ controller_components }}"
|
||||||
when:
|
when:
|
||||||
- controller_components | d("") | length > 0
|
- default_components + configuration_components | d("") | length > 0
|
||||||
|
|
||||||
- name: Log Demo
|
- name: Log Demo
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
|
|||||||
Reference in New Issue
Block a user