From e43dbd2431742d3172291b4850b25a09b454dafb Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 1 Aug 2020 22:01:16 +0200 Subject: [PATCH] add conjob state option --- defaults/main.yml | 1 + tasks/setup.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 5526251..437c539 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -44,4 +44,5 @@ minio_cronjobs: [] # job: "mc rm --older-than 30d --recursive --force my_bucket/logs" # user: "{{ minio_user }}" # cron_file: "minio" +# state: "present" # @end diff --git a/tasks/setup.yml b/tasks/setup.yml index b0dbd7c..b13ceb1 100644 --- a/tasks/setup.yml +++ b/tasks/setup.yml @@ -43,6 +43,7 @@ job: "{{ item.job }}" user: "{{ item.user | default(omit) }}" cron_file: "{{ item.cron_file | default(omit) }}" + state: "{{ item.state | default('present') }}" loop: "{{ minio_cronjobs }}" loop_control: label: "{{ item.name }}"