perf: 优化发布机部署脚本

pull/10495/head
吴小白 2023-05-18 14:06:00 +08:00 committed by Eric_Lee
parent 44967b1af1
commit b368b6aef4
1 changed files with 10 additions and 0 deletions

View File

@ -25,6 +25,16 @@
register: rds_install
- name: Stop Tinker before install (jumpserver)
ansible.windows.win_powershell:
script: |
if (Get-Process -Name 'tinker' -ErrorAction SilentlyContinue) {
TASKKILL /F /IM tinker.exe /T
}
else {
$Ansible.Changed = $false
}
- name: Stop Tinkerd before install (jumpserver)
ansible.windows.win_powershell:
script: |
if (Get-Service -Name 'JumpServer Tinker' -ErrorAction SilentlyContinue) {