tang --maxmemory cua portal

This commit is contained in:
thienqb123456
2025-03-04 17:13:09 +07:00
parent 9d15ed743a
commit c7500c16ef
10 changed files with 199 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
- name: Validate variables
assert:
that:
- green_path is defined and green_path | length > 0
- blue_path is defined and blue_path | length > 0
- active_path is defined and active_path | length > 0
fail_msg: "Thiếu hoặc rỗng biến cần thiết để set_target_path!"
# Chọn môi trường Blue hoặc Green để deploy
- name: Set target deployment environment
set_fact:
target_path: "{{ green_path if active_path == blue_path else blue_path }}" #lấy ra đường dẫn thư mục cần deploy
- debug:
var: target_path