jumpserver/apps/terminal/automations/deploy_applet_host/install_applet.yml

20 lines
478 B
YAML
Raw Normal View History

2022-11-14 10:48:21 +00:00
---
- hosts: all
vars:
applet_name: chrome
tasks:
- name: Install applet
2023-03-30 04:09:03 +00:00
ansible.windows.win_powershell:
script: |
tinkerd install --name {{ applet_name }}
$exitCode = $LASTEXITCODE
if ($exitCode -ne 0) {
Write-Host "Failed to install {{ applet_name }}"
Write-Host "Exit code: $exitCode"
$Ansible.Failed = $true
exit 1
}
2022-11-14 10:48:21 +00:00
when: applet_name != 'all'