From 66cddf63462d146ca1a5b7a44f7ce558e9ccb5f5 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Tue, 23 Feb 2021 10:49:28 +0100
Subject: [PATCH] Provide a new ChatOps and Scheduled Pipeline to run direct
 Ansible tasks

---
 .gitlab-ci-template.yml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.gitlab-ci-template.yml b/.gitlab-ci-template.yml
index cbb8789..fd600b5 100644
--- a/.gitlab-ci-template.yml
+++ b/.gitlab-ci-template.yml
@@ -48,6 +48,14 @@ Ansible:
     variables:
       - $ANSIBLE_JOB_NAME && $ANSIBLE_JOB_NAME != "Ansible"
 
+AnsibleDirect:
+  <<: *default_settings_cron
+  script:
+    - a ${CHAT_INPUT} ${ANSIBLE_EXTRA_ARGS}
+  except:
+    variables:
+      - $ANSIBLE_JOB_NAME && $ANSIBLE_JOB_NAME != "AnsibleDirect"
+
 RenewLetsEncrypt:
   <<: *default_settings_cron
   script:
-- 
GitLab