Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit b3f0807

Browse files
committed
Over refactored the variable setting!
1 parent e3e9bf8 commit b3f0807

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

roles/_init/tasks/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,18 @@
3030
ansible.builtin.set_fact:
3131
deploy_user: "{{ deploy_user | default('deploy') }}"
3232

33-
- name: Define deploy paths.
33+
- name: Define initial deploy paths.
3434
ansible.builtin.set_fact:
3535
deploy_base_path: "{{ deploy_base_path | default('/home/' + deploy_user + '/deploy/' + project_name + '_' + build_type) }}"
3636
deploy_assets_base_path: "{{ deploy_assets_base_path | default('/home/' + deploy_user + '/shared/' + project_name + '_' + build_type + '/assets') }}"
3737
webroot: "{{ webroot | default('web') }}"
38+
39+
- name: Define deploy_path_prefix variable.
40+
ansible.builtin.set_fact:
3841
deploy_path_prefix: "{{ deploy_base_path }}/{{ project_name }}_{{ build_type }}_build_"
42+
43+
- name: Define final deploy_path variable.
44+
ansible.builtin.set_fact:
3945
deploy_path: "{{ deploy_path | default(deploy_path_prefix + build_number|string) }}"
4046

4147
# This is passed from caller.

0 commit comments

Comments
 (0)