From 8f9eb64c8df124689bee4585428847303eea7708 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 28 Oct 2022 17:12:18 +0800 Subject: [PATCH] perf: update playbook.yml --- .../deploy_applet_host/playbook.yml | 64 +++++++++---------- 1 file changed, 30 insertions(+), 34 deletions(-) diff --git a/apps/terminal/automations/deploy_applet_host/playbook.yml b/apps/terminal/automations/deploy_applet_host/playbook.yml index ffb748b63..443482fc1 100644 --- a/apps/terminal/automations/deploy_applet_host/playbook.yml +++ b/apps/terminal/automations/deploy_applet_host/playbook.yml @@ -25,11 +25,39 @@ include_management_tools: yes register: rds_install - - name: Reboot if installing RDS feature requires it + - name: Download Jmservisor (jumpserver) + ansible.windows.win_get_url: + url: "{{ DownloadHost }}/Jmservisor.msi" + dest: "{{ ansible_env.TEMP }}\\Jmservisor.msi" + + - name: Install the Jmservisor (jumpserver) + ansible.windows.win_package: + path: "{{ ansible_env.TEMP }}\\Jmservisor.msi" + state: present + + - name: Download python-3.10.8 + ansible.windows.win_get_url: + url: "{{ DownloadHost }}/python-3.10.8-amd64.exe" + dest: "{{ ansible_env.TEMP }}\\python-3.10.8-amd64.exe" + + - name: Install the python-3.10.8 + ansible.windows.win_package: + path: "{{ ansible_env.TEMP }}\\python-3.10.8-amd64.exe" + product_id: '{371d0d73-d418-4ffe-b280-58c3e7987525}' + arguments: + - /quiet + - InstallAllUsers=1 + - PrependPath=1 + - Include_test=0 + - Include_launcher=0 + state: present + register: win_install_python + + - name: Reboot if installing requires it ansible.windows.win_reboot: post_reboot_delay: 10 test_command: whoami - when: rds_install.reboot_required + when: rds_install.reboot_required or win_install_python.reboot_required - name: Set RDS LicenseServer (regedit) ansible.windows.win_regedit: @@ -67,38 +95,6 @@ data: "{{ RDS_RemoteAppLogoffTimeLimit }}" type: dword - - name: Download Jmservisor (jumpserver) - ansible.windows.win_get_url: - url: "{{ DownloadHost }}/Jmservisor.msi" - dest: "{{ ansible_env.TEMP }}\\Jmservisor.msi" - - - name: Install the Jmservisor (jumpserver) - ansible.windows.win_package: - path: "{{ ansible_env.TEMP }}\\Jmservisor.msi" - state: present - - - name: Download python-3.10.8 - ansible.windows.win_get_url: - url: "{{ DownloadHost }}/python-3.10.8-amd64.exe" - dest: "{{ ansible_env.TEMP }}\\python-3.10.8-amd64.exe" - - - name: Install the python-3.10.8 - ansible.windows.win_package: - path: "{{ ansible_env.TEMP }}\\python-3.10.8-amd64.exe" - product_id: '{371d0d73-d418-4ffe-b280-58c3e7987525}' - arguments: - - /quiet - - InstallAllUsers=1 - - PrependPath=1 - - Include_test=0 - - Include_launcher=0 - state: present - register: win_install_python - - - name: Reboot if installing Python package requires it - ansible.windows.win_reboot: - when: win_install_python.reboot_required - - name: Download pip packages ansible.windows.win_get_url: url: "{{ DownloadHost }}/pip_packages_v0.0.1.zip"