From 1fc3a76d345684045cee2f6daad1fbfa23b541bc Mon Sep 17 00:00:00 2001 From: Tobias Huste Date: Wed, 24 Nov 2021 11:11:03 +0100 Subject: [PATCH] Fix snap symlink task failing in initial dry-run Due to the certbot package not being really installed on the initial dry-run the symlink generation fails. The corresponding will be ignored in check mode. --- tasks/install-with-snap.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/install-with-snap.yml b/tasks/install-with-snap.yml index 946ed13..7a0ca65 100644 --- a/tasks/install-with-snap.yml +++ b/tasks/install-with-snap.yml @@ -34,6 +34,7 @@ src: /snap/bin/certbot dest: /usr/bin/certbot state: link + ignore_errors: "{{ ansible_check_mode }}" - name: Set Certbot script variable. set_fact: