From 671febf92aee24e01802f7db0be053f24984f6c9 Mon Sep 17 00:00:00 2001 From: Stanislav Popov Date: Wed, 22 Feb 2017 00:04:33 +0500 Subject: [PATCH] fix: add cron tasks --- defaults/main.yml | 7 ++++++- meta/main.yml | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 meta/main.yml diff --git a/defaults/main.yml b/defaults/main.yml index 08124ac..48e3f6c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,2 +1,7 @@ --- -server_scripts_version: v0.2.18 \ No newline at end of file +server_scripts_version: v0.2.21 +server_scripts_cron_tasks: + - name: "detect-viruses" + hour: 3 + minute: 40 + job: "ionice -c3 detect-viruses /home" diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..ac6c9ed --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,3 @@ +--- +dependencies: + - { role: cron, cron_tasks: "{{server_scripts_cron_tasks}}" }