mirror of https://github.com/jumpserver/jumpserver
perf: 优化发布机部署脚本
parent
44967b1af1
commit
b368b6aef4
|
@ -25,6 +25,16 @@
|
||||||
register: rds_install
|
register: rds_install
|
||||||
|
|
||||||
- name: Stop Tinker before install (jumpserver)
|
- 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:
|
ansible.windows.win_powershell:
|
||||||
script: |
|
script: |
|
||||||
if (Get-Service -Name 'JumpServer Tinker' -ErrorAction SilentlyContinue) {
|
if (Get-Service -Name 'JumpServer Tinker' -ErrorAction SilentlyContinue) {
|
||||||
|
|
Loading…
Reference in New Issue