mirror of https://github.com/jumpserver/jumpserver
perf: applet 使用 powershell 部署
parent
5b017daba1
commit
caef6a5052
|
@ -4,5 +4,6 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install all applets
|
- name: Install all applets
|
||||||
ansible.windows.win_shell:
|
ansible.windows.win_powershell:
|
||||||
"tinkerd install all"
|
script: |
|
||||||
|
tinkerd install all
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install applet
|
- name: Install applet
|
||||||
ansible.windows.win_shell:
|
ansible.windows.win_powershell:
|
||||||
"tinkerd install --name {{ applet_name }}"
|
script: |
|
||||||
|
tinkerd install --name {{ applet_name }}
|
||||||
when: applet_name != 'all'
|
when: applet_name != 'all'
|
||||||
|
|
|
@ -143,9 +143,9 @@
|
||||||
dest: "{{ ansible_env.TEMP }}\\pip_packages"
|
dest: "{{ ansible_env.TEMP }}\\pip_packages"
|
||||||
|
|
||||||
- name: Install python requirements offline
|
- name: Install python requirements offline
|
||||||
ansible.windows.win_shell: >
|
ansible.windows.win_powershell:
|
||||||
pip install -r '{{ ansible_env.TEMP }}\pip_packages\pip_packages\requirements.txt'
|
script: |
|
||||||
--no-index --find-links='{{ ansible_env.TEMP }}\pip_packages\pip_packages'
|
pip install -r '{{ ansible_env.TEMP }}\pip_packages\pip_packages\requirements.txt' --no-index --find-links='{{ ansible_env.TEMP }}\pip_packages\pip_packages'
|
||||||
|
|
||||||
- name: Download chromedriver (Chromium)
|
- name: Download chromedriver (Chromium)
|
||||||
ansible.windows.win_get_url:
|
ansible.windows.win_get_url:
|
||||||
|
@ -197,17 +197,18 @@
|
||||||
- /SILENT
|
- /SILENT
|
||||||
|
|
||||||
- name: Generate tinkerd component config
|
- name: Generate tinkerd component config
|
||||||
ansible.windows.win_shell:
|
ansible.windows.win_powershell:
|
||||||
"tinkerd config --hostname {{ HOST_NAME }} --core_host {{ CORE_HOST }}
|
tinkerd config --hostname {{ HOST_NAME }} --core_host {{ CORE_HOST }} --token {{ BOOTSTRAP_TOKEN }} --host_id {{ HOST_ID }} --ignore-verify-certs {{ IGNORE_VERIFY_CERTS }}
|
||||||
--token {{ BOOTSTRAP_TOKEN }} --host_id {{ HOST_ID }} --ignore-verify-certs {{ IGNORE_VERIFY_CERTS }}"
|
|
||||||
|
|
||||||
- name: Install tinkerd service
|
- name: Install tinkerd service
|
||||||
ansible.windows.win_shell:
|
ansible.windows.win_powershell:
|
||||||
"tinkerd service install"
|
script: |
|
||||||
|
tinkerd service install
|
||||||
|
|
||||||
- name: Start tinkerd service
|
- name: Start tinkerd service
|
||||||
ansible.windows.win_shell:
|
ansible.windows.win_powershell:
|
||||||
"tinkerd service start"
|
script: |
|
||||||
|
tinkerd service start
|
||||||
|
|
||||||
- name: Wait Tinker api health
|
- name: Wait Tinker api health
|
||||||
ansible.windows.win_uri:
|
ansible.windows.win_uri:
|
||||||
|
@ -220,5 +221,6 @@
|
||||||
delay: 5
|
delay: 5
|
||||||
|
|
||||||
- name: Sync all remote applets
|
- name: Sync all remote applets
|
||||||
ansible.windows.win_shell:
|
ansible.windows.win_powershell:
|
||||||
"tinkerd install all"
|
script: |
|
||||||
|
tinkerd install all
|
Loading…
Reference in New Issue