From 6ec32fffca5ba0396288450c0a6578db5b1c6fd5 Mon Sep 17 00:00:00 2001 From: Gorden Date: Wed, 13 Oct 2021 16:08:41 +0200 Subject: [PATCH] rewritten check_mk check reset --- roles/cael.apt/tasks/main.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/roles/cael.apt/tasks/main.yml b/roles/cael.apt/tasks/main.yml index 906105c..fa0566c 100644 --- a/roles/cael.apt/tasks/main.yml +++ b/roles/cael.apt/tasks/main.yml @@ -27,9 +27,15 @@ apt: autoremove: true +#- name: reset state of check_mk check +# file: +# path: "{{ item }}" +# state: absent +# with_fileglob: +# - "/var/lib/check_mk_agent/cache/plugins_86400\\mk_apt.cache" + - name: reset state of check_mk check - file: - path: "{{ item }}" - state: absent - with_fileglob: - - "/var/lib/check_mk_agent/cache/plugins_86400\\mk_apt.cache" \ No newline at end of file + ansible.buildin.file: + path: /var/lib/check_mk_agent/cache/plugins_86400\\mk_apt.cache + state: touch + modification_time: 202001010101.01