|
32 | 32 |
|
33 | 33 | - name: Define deploy base path. |
34 | 34 | ansible.builtin.set_fact: |
35 | | - deploy_base_path: "{{ deploy_base_path | default('/home/{{ deploy_user }}/deploy/{{ project_name }}_{{ build_type }}') }}" |
| 35 | + deploy_base_path: "{{ deploy_base_path | default('/home/' + deploy_user + '/deploy/' + project_name + '_' + build_type) }}" |
36 | 36 |
|
37 | 37 | - name: Define mounted directory for assets. |
38 | 38 | ansible.builtin.set_fact: |
39 | | - deploy_assets_base_path: "{{ deploy_assets_base_path | default('/home/{{ deploy_user }}/shared/{{ project_name }}_{{ build_type }}/assets') }}" |
| 39 | + deploy_assets_base_path: "{{ deploy_assets_base_path | default('/home/' + deploy_user + '/shared/' + project_name + '_' + build_type + '/assets') }}" |
40 | 40 |
|
41 | 41 | - name: Define webroot. |
42 | 42 | ansible.builtin.set_fact: |
|
53 | 53 |
|
54 | 54 | - name: Define build deploy path. |
55 | 55 | ansible.builtin.set_fact: |
56 | | - deploy_path: "{{ deploy_path | default('{{ deploy_path_prefix }}{{ build_number }}') }}" |
| 56 | + deploy_path: "{{ deploy_path | default(deploy_path_prefix + build_number) }}" |
57 | 57 |
|
58 | 58 | - name: Define live_symlink dest. |
59 | 59 | ansible.builtin.set_fact: |
60 | | - live_symlink_dest: "{{ live_symlink_dest | default('{{ deploy_base_path }}/live.{{ project_name }}_{{ build_type }}') }}" |
| 60 | + live_symlink_dest: "{{ live_symlink_dest | default(deploy_base_path + '/live.' + project_name + '_' + build_type) }}" |
61 | 61 |
|
62 | 62 | - name: Read the live symlink to get the path to the current build. |
63 | 63 | ansible.builtin.stat: |
|
114 | 114 |
|
115 | 115 | - name: Define live_symlink dest for image builds. |
116 | 116 | ansible.builtin.set_fact: |
117 | | - live_symlink_build_dest: "{{ live_symlink_build_dest | default('{{ build_base_path }}/live.{{ project_name }}_{{ build_type }}') }}" |
| 117 | + live_symlink_build_dest: "{{ live_symlink_build_dest | default(build_base_path + '/live.' + project_name + '_' + build_type) }}" |
118 | 118 |
|
119 | 119 | - name: Overwrite deploy and live_symlink paths if SquashFS deploy. |
120 | 120 | ansible.builtin.set_fact: |
121 | | - deploy_path: "{{ build_path | default('{{ build_path_prefix }}{{ build_number }}') }}" |
| 121 | + deploy_path: "{{ build_path | default(build_path_prefix + build_number) }}" |
122 | 122 |
|
123 | 123 | - name: Overwrite cachetool path if SquashFS deploy and path not provided. |
124 | 124 | ansible.builtin.set_fact: |
|
206 | 206 |
|
207 | 207 | - name: Set the previous deploy's path for later use where we need to manipulate the live site. |
208 | 208 | ansible.builtin.set_fact: |
209 | | - previous_deploy_path: "{{ previous_deploy_path | default('{{ deploy_path_prefix }}{{ previous_build_number }}') }}" |
| 209 | + previous_deploy_path: "{{ previous_deploy_path | default(deploy_path_prefix + previous_build_number) }}" |
210 | 210 |
|
211 | 211 | # Make sure the deploy target exists. |
212 | 212 | - name: Ensure deploy target directory exists. |
|
0 commit comments