From 3599258ad9a10f826f5fb0484f041136467e01b1 Mon Sep 17 00:00:00 2001 From: Klaus Zerwes Date: Mon, 10 Jun 2024 20:35:26 +0200 Subject: [PATCH] doc scheduled reccuring task creation --- README.md | 6 ++++++ defaults/main.yml | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/README.md b/README.md index 34d80da..1888295 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,9 @@ currently tested with different ansible versions (2.9 - 2.16) and: * debian 11 * ubuntu 22.04 * ubuntu 20.04 + +## scheduled task creation + +it includes a script and vars to configure scheduled reccuring task creation. + +it requires [hiyapyco](https://github.com/zerwes/hiyapyco) diff --git a/defaults/main.yml b/defaults/main.yml index b39e2ac..414f641 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -98,4 +98,28 @@ openproject_update_installerdat: {} # install the health check for ckeckmk openproject_use_checkmk_check: false +# vault this! +# openproject_automation_api_token: ... + +# scheduled task creation +openproject_scheduled_reccuring_tasks: {} +# example: +# openproject_scheduled_reccuring_tasks: +# puddingtime: +# # crontab time: min hour dayofmonth month dayofweek +# cron: '30 14 * * * *' +# # check: additional check like [ "$(date '+\%u')" = "3" ] +# args: +# subject: 'Test Task @ {NOW}' +# description: | +# Test for {MY} created {TODAY} +# Now {NOW} it's pudding time! +# projectid: 10 +# # assigngroupid: 13 +# assignuserid: 5 +openproject_scheduled_reccuring_cronfile: /etc/cron.d/openproject-scheduled-tasks +openproject_scheduled_reccuring_confprefix: /usr/local/etc/openprojectscheduled- +openproject_scheduled_reccuring_user: root + + # vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2 smartindent nu ft=yaml