Skip to content

Commit

Permalink
Re-add project_root support in alias command
Browse files Browse the repository at this point in the history
  • Loading branch information
swalkinshaw committed Jul 15, 2024
1 parent 350ec72 commit 179e975
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/files/playbooks/alias_template.yml.j2
Original file line number Diff line number Diff line change
@@ -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 %}

0 comments on commit 179e975

Please sign in to comment.