|
|
@ -13,6 +13,7 @@
|
|
|
|
RDS_fSingleSessionPerUser: 1
|
|
|
|
RDS_fSingleSessionPerUser: 1
|
|
|
|
RDS_MaxDisconnectionTime: 60000
|
|
|
|
RDS_MaxDisconnectionTime: 60000
|
|
|
|
RDS_RemoteAppLogoffTimeLimit: 0
|
|
|
|
RDS_RemoteAppLogoffTimeLimit: 0
|
|
|
|
|
|
|
|
TinkerInstaller: JumpServer-Remoteapp_v0.0.1.exe
|
|
|
|
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
- name: Install RDS-Licensing (RDS)
|
|
|
|
- name: Install RDS-Licensing (RDS)
|
|
|
@ -29,16 +30,26 @@
|
|
|
|
include_management_tools: yes
|
|
|
|
include_management_tools: yes
|
|
|
|
register: rds_install
|
|
|
|
register: rds_install
|
|
|
|
|
|
|
|
|
|
|
|
- name: Download Jmservisor (jumpserver)
|
|
|
|
- name: Download JumpServer Remoteapp installer (jumpserver)
|
|
|
|
ansible.windows.win_get_url:
|
|
|
|
ansible.windows.win_get_url:
|
|
|
|
url: "{{ DownloadHost }}/Jmservisor.msi"
|
|
|
|
url: "{{ DownloadHost }}/{{ TinkerInstaller }}"
|
|
|
|
dest: "{{ ansible_env.TEMP }}\\Jmservisor.msi"
|
|
|
|
dest: "{{ ansible_env.TEMP }}\\{{ TinkerInstaller }}"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install the Jmservisor (jumpserver)
|
|
|
|
- name: Install JumpServer Remoteapp agent (jumpserver)
|
|
|
|
ansible.windows.win_package:
|
|
|
|
ansible.windows.win_package:
|
|
|
|
path: "{{ ansible_env.TEMP }}\\Jmservisor.msi"
|
|
|
|
path: "{{ ansible_env.TEMP }}\\{{ TinkerInstaller }}"
|
|
|
|
|
|
|
|
args:
|
|
|
|
|
|
|
|
- /VERYSILENT
|
|
|
|
|
|
|
|
- /SUPPRESSMSGBOXES
|
|
|
|
|
|
|
|
- /NORESTART
|
|
|
|
state: present
|
|
|
|
state: present
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set remote-server on the global system path (remote-server)
|
|
|
|
|
|
|
|
ansible.windows.win_path:
|
|
|
|
|
|
|
|
elements:
|
|
|
|
|
|
|
|
- '%USERPROFILE%\AppData\Local\Programs\JumpServer-Remoteapp\'
|
|
|
|
|
|
|
|
scope: user
|
|
|
|
|
|
|
|
|
|
|
|
- name: Download python-3.10.8
|
|
|
|
- name: Download python-3.10.8
|
|
|
|
ansible.windows.win_get_url:
|
|
|
|
ansible.windows.win_get_url:
|
|
|
|
url: "{{ DownloadHost }}/python-3.10.8-amd64.exe"
|
|
|
|
url: "{{ DownloadHost }}/python-3.10.8-amd64.exe"
|
|
|
@ -116,12 +127,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
- name: Download chromedriver (chrome)
|
|
|
|
- name: Download chromedriver (chrome)
|
|
|
|
ansible.windows.win_get_url:
|
|
|
|
ansible.windows.win_get_url:
|
|
|
|
url: "{{ DownloadHost }}/chromedriver_win32.106.zip"
|
|
|
|
url: "{{ DownloadHost }}/chromedriver_win32.107.zip"
|
|
|
|
dest: "{{ ansible_env.TEMP }}\\chromedriver_win32.106.zip"
|
|
|
|
dest: "{{ ansible_env.TEMP }}\\chromedriver_win32.107.zip"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Unzip chromedriver (chrome)
|
|
|
|
- name: Unzip chromedriver (chrome)
|
|
|
|
community.windows.win_unzip:
|
|
|
|
community.windows.win_unzip:
|
|
|
|
src: "{{ ansible_env.TEMP }}\\chromedriver_win32.106.zip"
|
|
|
|
src: "{{ ansible_env.TEMP }}\\chromedriver_win32.107.zip"
|
|
|
|
dest: C:\Program Files\JumpServer\drivers
|
|
|
|
dest: C:\Program Files\JumpServer\drivers
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set chromedriver on the global system path (chrome)
|
|
|
|
- name: Set chromedriver on the global system path (chrome)
|
|
|
@ -142,8 +153,26 @@
|
|
|
|
- /quiet
|
|
|
|
- /quiet
|
|
|
|
|
|
|
|
|
|
|
|
- name: Generate component config
|
|
|
|
- name: Generate component config
|
|
|
|
ansible.windows.win_shell: >
|
|
|
|
ansible.windows.win_shell:
|
|
|
|
echo "Todo: Set config"
|
|
|
|
"remoteapp-server config --core_host {{ CORE_HOST }} --token {{ BOOTSTRAP_TOKEN }} --host_id {{ HOST_ID }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install remoteapp-server service
|
|
|
|
|
|
|
|
ansible.windows.win_shell:
|
|
|
|
|
|
|
|
"remoteapp-server service install"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Start remoteapp-server service
|
|
|
|
|
|
|
|
ansible.windows.win_shell:
|
|
|
|
|
|
|
|
"remoteapp-server service start"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Wait Tinker api health
|
|
|
|
|
|
|
|
ansible.windows.win_uri:
|
|
|
|
|
|
|
|
url: http://localhost:6068/api/health/
|
|
|
|
|
|
|
|
status_code: 200
|
|
|
|
|
|
|
|
method: GET
|
|
|
|
|
|
|
|
register: _result
|
|
|
|
|
|
|
|
until: _result.status_code == 200
|
|
|
|
|
|
|
|
retries: 30
|
|
|
|
|
|
|
|
delay: 5
|
|
|
|
|
|
|
|
|
|
|
|
- name: Sync all remote applets
|
|
|
|
- name: Sync all remote applets
|
|
|
|
ansible.windows.win_shell: >
|
|
|
|
ansible.windows.win_shell: >
|
|
|
|