add notification

This commit is contained in:
willtome
2022-09-08 11:41:24 -04:00
parent 9c5cc4e4c0
commit 980e541896
2 changed files with 54 additions and 1 deletions

View File

@@ -3,8 +3,18 @@
gather_facts: no
vars_files:
- "{{demo}}/setup.yml"
vars:
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:
- name: Setup Components
@@ -12,7 +22,7 @@
name: "redhat_cop.controller_configuration.{{ item }}"
loop: "{{ controller_components }}"
when:
- controller_components | d("") | length > 0
- default_components + configuration_components | d("") | length > 0
- name: Log Demo
ansible.builtin.uri: