Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion wsl/roles/virtualhost/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
include_role:
name: virtualhost
tasks_from: create
when: sites_enabled_check.stdout == "1"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TLDR: This checks stops the recipe from attempting to create a virtualhost even when it already exists.


Please explain why do we need to remove this, and more specifically, why only here?
Because, if you look closely, there's another check involving this variable on L19.

The variable is registered on L12 as a result of checking whether "sites-enabled config files are already added to Apache config" (see L10). And, based on its value, certain things happen L14/L24.

Loading