add conjob state option
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-08-01 22:01:16 +02:00
parent d1cd0b73d1
commit e43dbd2431
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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 }}"