From 040bd085039f8fb73da2c3afbc130e270d21e5d0 Mon Sep 17 00:00:00 2001 From: Guy Van Sanden Date: Wed, 12 Feb 2025 14:21:43 +0100 Subject: [PATCH] Added ansible role --- Ansible/tellme_notification/defaults/main.yml | 3 +++ Ansible/tellme_notification/tasks/main.yml | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 Ansible/tellme_notification/defaults/main.yml create mode 100644 Ansible/tellme_notification/tasks/main.yml diff --git a/Ansible/tellme_notification/defaults/main.yml b/Ansible/tellme_notification/defaults/main.yml new file mode 100644 index 0000000..7576c21 --- /dev/null +++ b/Ansible/tellme_notification/defaults/main.yml @@ -0,0 +1,3 @@ +--- +tellme_url: https:// +tellme_webhook: 123 diff --git a/Ansible/tellme_notification/tasks/main.yml b/Ansible/tellme_notification/tasks/main.yml new file mode 100644 index 0000000..592fffe --- /dev/null +++ b/Ansible/tellme_notification/tasks/main.yml @@ -0,0 +1,11 @@ +--- +- name: Send a tellme notification + uri: + url: "{{ tellme_url }}/webhook/{{ tellme_webhook }}" + method: POST + body: + message: "EPS Ansible run completed" + body_format: json + delegate_to: mon01 + run_once: true + ignore_errors: yes