From 42f5d2c10e9e374f321ae87d3573bae3c4835746 Mon Sep 17 00:00:00 2001 From: Jeremy Dubois Date: Wed, 21 Oct 2020 15:47:23 +0200 Subject: [PATCH] Add "create; true" to other task, needed when running in check mode --- roles/evocheck/tasks/install.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/evocheck/tasks/install.yml b/roles/evocheck/tasks/install.yml index 43338ef..d67e430 100644 --- a/roles/evocheck/tasks/install.yml +++ b/roles/evocheck/tasks/install.yml @@ -37,10 +37,13 @@ tags: - evocheck -- name: Add evocheck cron +- name: Add evocheck cron next_part lineinfile: path: /etc/daily.local line: 'next_part "Evocheck output:"' insertbefore: 'sh /usr/share/scripts/evocheck.sh --verbose --cron' + owner: root + mode: "0644" + create: true tags: - evocheck