From 179e97568515f911a9a013dd24e092c8a34322b4 Mon Sep 17 00:00:00 2001 From: Scott Walkinshaw Date: Sun, 14 Jul 2024 22:48:54 -0400 Subject: [PATCH] Re-add `project_root` support in `alias` command --- cmd/files/playbooks/alias_template.yml.j2 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/files/playbooks/alias_template.yml.j2 b/cmd/files/playbooks/alias_template.yml.j2 index afe04349..b61dc0c3 100644 --- a/cmd/files/playbooks/alias_template.yml.j2 +++ b/cmd/files/playbooks/alias_template.yml.j2 @@ -1,9 +1,8 @@ {% if include_local_env | default(false) %} "@{{ env }}": ssh: "{{ local_hostname_alias }}" - path: "{{ www_root + '/' + item.key | regex_replace('^~\/','') }}/{{ item.value.current_path | default('current') }}/{{ item.value.public_path | default('web') }}/wp" + path: "{{ project_root | default(www_root + '/' + item.key) | regex_replace('^~\/','') }}/{{ item.value.current_path | default('current') }}/{{ item.value.public_path | default('web') }}/wp" {% else %} "@{{ env }}": - ssh: "{{ web_user }}@{{ ansible_host }}:{{ ansible_port | default('22') }}" - path: "{{ www_root + '/' + item.key | regex_replace('^~\/','') }}/{{ item.value.current_path | default('current') }}/{{ item.value.public_path | default('web') }}/wp" + path: "{{ project_root | default(www_root + '/' + item.key) | regex_replace('^~\/','') }}/{{ item.value.current_path | default('current') }}/{{ item.value.public_path | default('web') }}/wp" {% endif %}