Skip to content

Commit 1acf273

Browse files
committed
[code] style and added conditions
1 parent 4d6d590 commit 1acf273

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

roles/code/tasks/install.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
- name: Warn about 403 APK index
3737
fail:
3838
msg: |
39-
The 'code' role could not access: {{ adfa_code_download_url }}/ (HTTP 403). CDN is likely blocking datacenter IPs; see pause banner below.
39+
The 'code' role could not access: {{ adfa_code_download_url }}/ (HTTP 403). CDN is likely blocking datacenter IPs.
4040
4141
================ CODE ROLE WARNING ================
4242
The 'code' role hit a CDN 403 (APK index query blocked).
@@ -87,12 +87,14 @@
8787
src: "index.html.j2"
8888
dest: "{{ code_serve_path }}/index.html"
8989
mode: "0644"
90+
when: code_blocked_by_cdn is undefined
9091

9192
- name: Make content directory
9293
file:
9394
path: "{{ code_data_root_content }}"
9495
state: directory
9596
mode: "0755"
97+
when: code_blocked_by_cdn is undefined
9698

9799
- name: Render localized Markdown content files
98100
template:
@@ -110,6 +112,7 @@
110112

111113
- name: Setup 'code' nginx conf file
112114
include_tasks: nginx.yml
115+
when: code_blocked_by_cdn is undefined
113116

114117

115118
# RECORD CODE AS INSTALLED

0 commit comments

Comments
 (0)