From cab45d26d508c444455e2d282f1feaec4305f722 Mon Sep 17 00:00:00 2001 From: Wasseem Khayrattee Date: Sun, 28 Nov 2021 00:11:03 +0400 Subject: [PATCH] fix: use touch with no date changes See related ticket: - https://github.com/dev-sec/ansible-os-hardening/pull/310 - https://github.com/dev-sec/ansible-os-hardening/pull/309 --- tasks/sysctl.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/sysctl.yml b/tasks/sysctl.yml index 7a6d83b49..2677d769a 100644 --- a/tasks/sysctl.yml +++ b/tasks/sysctl.yml @@ -5,6 +5,9 @@ owner: 'root' group: 'root' mode: '0440' + state: touch + modification_time: preserve + access_time: preserve - name: set Daemon umask, do config for rhel-family | NSA 2.2.4.1 template: