From 779771e8d612a1e6ff6f2366cd41358287bd5037 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 14 May 2022 11:22:42 +0200 Subject: [PATCH] updated cron state --- states/cron/defaults.yaml | 10 +++------- states/cron/init.sls | 4 ++-- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/states/cron/defaults.yaml b/states/cron/defaults.yaml index 41d68b8..5440e13 100644 --- a/states/cron/defaults.yaml +++ b/states/cron/defaults.yaml @@ -1,10 +1,6 @@ --- cron: env: - SHELL: - name: SHELL - command: /bin/bash - MAILTO: - name: MAILTO - command: "me@ac.me" - tasks: + SHELL: /bin/bash + MAILTO: "me@ac.me" + tasks: {} diff --git a/states/cron/init.sls b/states/cron/init.sls index 7899184..5fb8816 100644 --- a/states/cron/init.sls +++ b/states/cron/init.sls @@ -3,6 +3,6 @@ {%- for key, value in cron.env.items() %} cron-env-{{ key|lower }}: cron.env_present: - - name: {{ value.name }} - - value: {{ value.command }} + - name: {{ key }} + - value: {{ value }} {%- endfor %} \ No newline at end of file