From 78fc3dc04eadfc96ca55c189f9c33367bfe8ef86 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Fri, 17 Oct 2025 11:23:23 +0200 Subject: [PATCH] copr-be: idempotent touch --- roles/copr/backend/tasks/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml index fed5514f36..2c7b89950c 100644 --- a/roles/copr/backend/tasks/main.yml +++ b/roles/copr/backend/tasks/main.yml @@ -102,7 +102,14 @@ - lighttpd_config - name: Create a txt file with Pulp redirects - file: state=touch dest=/var/lib/copr/pulp-redirect.txt owner=copr group=copr mode=644 + file: + state: touch + dest: /var/lib/copr/pulp-redirect.txt + owner: copr + group: copr + mode: "644" + modification_time: preserve + access_time: preserve - name: Add custom lighttpd lua scripts ansible.builtin.template: src="lighttpd/{{ item }}.j2" dest="/etc/lighttpd/{{ item }}" owner=root group=root mode=644