From 2ff0b51c050ee6879a65b81753dc65fb118b6845 Mon Sep 17 00:00:00 2001 From: Jonathan Piron Date: Tue, 16 Jan 2024 09:10:20 +0100 Subject: [PATCH] fix Debian check mode file module needs force attribute if symlink destination doesn't exist which is the case in check mode. --- tasks/configure-Debian.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/configure-Debian.yml b/tasks/configure-Debian.yml index 0932f37d..4d4237ff 100644 --- a/tasks/configure-Debian.yml +++ b/tasks/configure-Debian.yml @@ -46,6 +46,7 @@ dest: "{{ apache_conf_path }}/sites-enabled/{{ apache_vhosts_filename }}" state: link mode: 0644 + force: "{{ ansible_check_mode }}" notify: restart apache when: apache_create_vhosts | bool