update
This commit is contained in:
@@ -1,10 +1,16 @@
|
|||||||
temp_dir: "C:\\deploy\\vpress\\temp"
|
temp_dir: "C:\\deploy\\vpress\\temp"
|
||||||
iis_site_name_1: "beta.kinhtedothi.vn"
|
# iis_site_name_1: "beta.kinhtedothi.vn"
|
||||||
iis_site_name_2: "beta.hanoitimes.vn"
|
# iis_site_name_2: "beta.hanoitimes.vn"
|
||||||
blue_path: "C:\\deploy\\portal\\fe\\blue"
|
# blue_path: "C:\\deploy\\portal\\fe\\blue"
|
||||||
green_path: "C:\\deploy\\portal\\fe\\green"
|
# green_path: "C:\\deploy\\portal\\fe\\green"
|
||||||
|
|
||||||
# iis_site_name_1: "kinhtedothi.vn"
|
# iis_site_name_1: "kinhtedothi.vn"
|
||||||
# iis_site_name_2: "hanoitimes.vn"
|
# iis_site_name_2: "hanoitimes.vn"
|
||||||
# blue_path: "C:\\deploy\\portal\\fe2\\blue"
|
# 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"
|
||||||
@@ -1,5 +1,11 @@
|
|||||||
temp_dir: "C:\\deploy\\vpress\\temp"
|
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"
|
blue_path: "C:\\deploy\\vpress\\portal\\fe\\blue"
|
||||||
green_path: "C:\\deploy\\vpress\\portal\\fe\\green"
|
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"
|
||||||
@@ -1,4 +1,9 @@
|
|||||||
- name: Deploy Frontend for Project Portal
|
- name: Deploy Frontend for Project Portal
|
||||||
hosts: "{{ deploy_env }}-{{project_name}}-frontend"
|
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:
|
roles:
|
||||||
- deploy-fe-portal
|
- deploy-fe-portal
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
#Debug
|
#Debug
|
||||||
- name: Debug iis_site_name_1
|
- name: Debug iis_site_name
|
||||||
debug:
|
debug:
|
||||||
var: iis_site_name_1
|
var: iis_site_name
|
||||||
|
|
||||||
- name: Debug iis_site_name_2
|
|
||||||
debug:
|
|
||||||
var: iis_site_name_2
|
|
||||||
|
|
||||||
- name: Debug blue_path
|
- name: Debug blue_path
|
||||||
debug:
|
debug:
|
||||||
@@ -24,7 +20,7 @@
|
|||||||
- name: Get the physical path of the current IIS site
|
- name: Get the physical path of the current IIS site
|
||||||
win_shell: |
|
win_shell: |
|
||||||
Import-Module WebAdministration
|
Import-Module WebAdministration
|
||||||
$site = Get-Website -Name "{{ iis_site_name_1 }}"
|
$site = Get-Website -Name "{{ iis_site_name}}"
|
||||||
$site.PhysicalPath
|
$site.PhysicalPath
|
||||||
register: active_path
|
register: active_path
|
||||||
- debug:
|
- debug:
|
||||||
|
|||||||
@@ -1,11 +1,6 @@
|
|||||||
- name: Update site 1 IIS web application
|
- name: Update site IIS web application
|
||||||
win_iis_website:
|
win_iis_website:
|
||||||
name: "{{ iis_site_name_1 }}"
|
name: "{{ iis_site_name }}"
|
||||||
physical_path: "{{ target_path }}"
|
|
||||||
|
|
||||||
- name: Update site 2 IIS web application
|
|
||||||
win_iis_website:
|
|
||||||
name: "{{ iis_site_name_2 }}"
|
|
||||||
physical_path: "{{ target_path }}"
|
physical_path: "{{ target_path }}"
|
||||||
|
|
||||||
# - name: Restart IIS site to apply changes
|
# - name: Restart IIS site to apply changes
|
||||||
|
|||||||
Reference in New Issue
Block a user