From fcc3f9136e5bdfbe2a8d319a598f189dec59a4d2 Mon Sep 17 00:00:00 2001 From: bidi Date: Thu, 24 Sep 2026 18:20:17 +0300 Subject: [PATCH] Fix virtualhost creation being skipped on first playbook run The "Create virtualhosts" task was gated on sites_enabled_check.stdout == "1", but a fresh system's grep returns "0" on the very run that adds the IncludeOptional line, so configured virtualhosts were silently skipped until a second run. The underlying create.yml tasks (template + symlink) are already idempotent, so running them unconditionally is safe. --- wsl/roles/virtualhost/tasks/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/wsl/roles/virtualhost/tasks/main.yml b/wsl/roles/virtualhost/tasks/main.yml index b15b921..0c6d96c 100644 --- a/wsl/roles/virtualhost/tasks/main.yml +++ b/wsl/roles/virtualhost/tasks/main.yml @@ -25,4 +25,3 @@ include_role: name: virtualhost tasks_from: create - when: sites_enabled_check.stdout == "1"