v3 #1

Open
thienvv wants to merge 69 commits from v3 into main
6 changed files with 33 additions and 21 deletions
Showing only changes of commit 38d9908946 - Show all commits
+11 -5
View File
@@ -1,10 +1,16 @@
temp_dir: "C:\\deploy\\vpress\\temp"
iis_site_name_1: "beta.kinhtedothi.vn"
iis_site_name_2: "beta.hanoitimes.vn"
blue_path: "C:\\deploy\\portal\\fe\\blue"
green_path: "C:\\deploy\\portal\\fe\\green"
# iis_site_name_1: "beta.kinhtedothi.vn"
# iis_site_name_2: "beta.hanoitimes.vn"
# blue_path: "C:\\deploy\\portal\\fe\\blue"
# green_path: "C:\\deploy\\portal\\fe\\green"
# iis_site_name_1: "kinhtedothi.vn"
# iis_site_name_2: "hanoitimes.vn"
# blue_path: "C:\\deploy\\portal\\fe2\\blue"
# green_path: "C:\\deploy\\portal\\fe2\\green"
# green_path: "C:\\deploy\\portal\\fe2\\green"
iis_site_name_1: "beta.kinhtedothi.vn"
iis_site_name_2: "beta.hanoitimes.vn"
blue_path: "C:\\deploy\\portal\\fe\\blue"
green_path: "C:\\deploy\\portal\\fe\\green"
+8 -2
View File
@@ -1,5 +1,11 @@
temp_dir: "C:\\deploy\\vpress\\temp"
iis_site_name_1: "uat-portal.vpress.vn"
iis_site_name_2: "uat-portal2"
# iis_site_name_1: "uat-portal.vpress.vn"
# iis_site_name_2: "uat-portal2"
# blue_path: "C:\\deploy\\vpress\\portal\\fe\\blue"
# green_path: "C:\\deploy\\vpress\\portal\\fe\\green"
iis_site_name: "uat-portal.vpress.vn"
blue_path: "C:\\deploy\\vpress\\portal\\fe\\blue"
green_path: "C:\\deploy\\vpress\\portal\\fe\\green"
@@ -0,0 +1,4 @@
temp_dir: "C:\\deploy\\vpress\\temp"
iis_site_name: "uat-portal.vpress.vn"
blue_path: "C:\\deploy\\vpress\\portal\\fe\\ktdt\\blue"
green_path: "C:\\deploy\\vpress\\portal\\fe\\ktdt\\green"
+5
View File
@@ -1,4 +1,9 @@
- name: Deploy Frontend for Project Portal
hosts: "{{ deploy_env }}-{{project_name}}-frontend"
vars:
portal_name: "{{ portal_name }}"
pre_tasks:
- name: Include portal-specific variables
include_vars: "host_vars/{{ deploy_env }}-{{ project_name }}-{{ portal_name }}-frontend.yml"
roles:
- deploy-fe-portal
+3 -7
View File
@@ -1,11 +1,7 @@
#Debug
- name: Debug iis_site_name_1
- name: Debug iis_site_name
debug:
var: iis_site_name_1
- name: Debug iis_site_name_2
debug:
var: iis_site_name_2
var: iis_site_name
- name: Debug blue_path
debug:
@@ -24,7 +20,7 @@
- name: Get the physical path of the current IIS site
win_shell: |
Import-Module WebAdministration
$site = Get-Website -Name "{{ iis_site_name_1 }}"
$site = Get-Website -Name "{{ iis_site_name}}"
$site.PhysicalPath
register: active_path
- debug:
+2 -7
View File
@@ -1,11 +1,6 @@
- name: Update site 1 IIS web application
- name: Update site IIS web application
win_iis_website:
name: "{{ iis_site_name_1 }}"
physical_path: "{{ target_path }}"
- name: Update site 2 IIS web application
win_iis_website:
name: "{{ iis_site_name_2 }}"
name: "{{ iis_site_name }}"
physical_path: "{{ target_path }}"
# - name: Restart IIS site to apply changes