neues bootlogo
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
thin-client-01 ansible_host=192.168.178.241
|
||||
#thin-client-02 ansible_host=192.168.0.29
|
||||
#thin-client-03 ansible_host=192.168.0.23
|
||||
|
||||
#thin-client-04 ansible host=192.168.0.
|
||||
[rdp_clients:vars]
|
||||
ansible_user=root
|
||||
#ansible_ssh_private_key_file=~/.ssh/id_rsa
|
||||
|
||||
+1
-70
@@ -200,9 +200,7 @@
|
||||
|
||||
# Start USB automount (udiskie)
|
||||
udiskie --tray --automount --notify &
|
||||
|
||||
# Session Watcher läuft als systemd-Service
|
||||
|
||||
|
||||
# Start RDP Launcher
|
||||
/usr/local/bin/rdp-launcher.sh &
|
||||
|
||||
@@ -356,19 +354,6 @@
|
||||
# Auto-generated by RDP Thin Client Setup
|
||||
force: no
|
||||
|
||||
# === INSTALL PYTHON DEPENDENCIES ===
|
||||
- name: Install python-xlib via pip
|
||||
shell: pip3 install python-xlib --break-system-packages
|
||||
args:
|
||||
creates: /usr/local/lib/python3.11/dist-packages/Xlib
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Alternative - Install python-xlib from apt
|
||||
apt:
|
||||
name: python3-xlib
|
||||
state: present
|
||||
ignore_errors: yes
|
||||
|
||||
# === COPY SCRIPTS ===
|
||||
- name: Copy RDP Profile Manager
|
||||
copy:
|
||||
@@ -382,60 +367,6 @@
|
||||
dest: /usr/local/bin/rdp-launcher.sh
|
||||
mode: '0755'
|
||||
|
||||
- name: Copy Session Watcher
|
||||
copy:
|
||||
src: ../files/session-watcher.py
|
||||
dest: /usr/local/bin/session-watcher.py
|
||||
mode: '0755'
|
||||
|
||||
# === SESSION WATCHER SYSTEMD SERVICE ===
|
||||
- name: Create systemd user service directory
|
||||
file:
|
||||
path: /home/{{ thin_client_user }}/.config/systemd/user
|
||||
state: directory
|
||||
owner: "{{ thin_client_user }}"
|
||||
group: "{{ thin_client_user }}"
|
||||
mode: '0755'
|
||||
|
||||
- name: Create Session Watcher systemd service
|
||||
copy:
|
||||
dest: /home/{{ thin_client_user }}/.config/systemd/user/session-watcher.service
|
||||
owner: "{{ thin_client_user }}"
|
||||
group: "{{ thin_client_user }}"
|
||||
mode: '0644'
|
||||
content: |
|
||||
[Unit]
|
||||
Description=RDP Session Watcher - Exit Hotkey Monitor
|
||||
After=graphical.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/session-watcher.py
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
Environment=DISPLAY=:0
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
- name: Create default.target.wants directory
|
||||
file:
|
||||
path: /home/{{ thin_client_user }}/.config/systemd/user/default.target.wants
|
||||
state: directory
|
||||
owner: "{{ thin_client_user }}"
|
||||
group: "{{ thin_client_user }}"
|
||||
mode: '0755'
|
||||
|
||||
- name: Create symlink to enable Session Watcher service
|
||||
file:
|
||||
src: /home/{{ thin_client_user }}/.config/systemd/user/session-watcher.service
|
||||
dest: /home/{{ thin_client_user }}/.config/systemd/user/default.target.wants/session-watcher.service
|
||||
owner: "{{ thin_client_user }}"
|
||||
group: "{{ thin_client_user }}"
|
||||
state: link
|
||||
force: yes
|
||||
ignore_errors: yes
|
||||
|
||||
# === BRANDING ===
|
||||
- name: Check if branding files exist
|
||||
stat:
|
||||
|
||||
Reference in New Issue
Block a user