perf: 优化发布机日志输出

pull/13088/head
吴小白 2024-04-13 12:30:56 +08:00 committed by Bryan
parent 2afabd65f9
commit f987515b89
1 changed files with 221 additions and 223 deletions

View File

@ -17,6 +17,7 @@
TinkerInstaller: Tinker_Installer.exe
tasks:
- block:
- name: Install RDS-RD-Server (RDS)
ansible.windows.win_feature:
name: RDS-RD-Server
@ -34,16 +35,6 @@
$Ansible.Changed = $false
}
- name: Stop Tinkerd before install (jumpserver)
ansible.windows.win_powershell:
script: |
if (Get-Service -Name 'JumpServer Tinker' -ErrorAction SilentlyContinue) {
Stop-Service -Name 'JumpServer Tinker' -Force
}
else {
$Ansible.Changed = $false
}
- name: Download JumpServer Tinker installer (jumpserver)
ansible.windows.win_get_url:
url: "{{ APPLET_DOWNLOAD_HOST }}/download/applets/{{ TinkerInstaller }}"
@ -92,8 +83,8 @@
else {
$Ansible.Changed = $true
}
register: check_pip_command
ignore_errors: yes
register: check_pip_command
- name: Reboot if installing requires it
ansible.windows.win_reboot:
@ -273,3 +264,10 @@
ansible.windows.win_powershell:
script: |
tinkerd install all
register: sync_remote_applets
rescue:
- debug:
var: ansible_failed_result
- fail:
msg: "Failed to deploy applet host"