diff --git a/roles/xrdp_apphost/defaults/main.yml b/roles/xrdp_apphost/defaults/main.yml index c29eabe..4062151 100644 --- a/roles/xrdp_apphost/defaults/main.yml +++ b/roles/xrdp_apphost/defaults/main.yml @@ -3,6 +3,23 @@ xrdp_maxsessions: 10 xrdp_killdisconnected: true xrdp_policy: UBDC +xrdp_ls_title: Binary Kitchen Application Server +xrdp_ls_top_window_bg_color: 003377 +xrdp_ls_bg_color: dedede +xrdp_ls_width: 350 +xrdp_ls_height: 430 +xrdp_ls_logo_filename: KitchenLogo.bmp +xrdp_ls_logo_x_pos: 55 +xrdp_ls_logo_y_pos: 50 +xrdp_ls_label_x_pos: 30 +xrdp_ls_label_width: 65 +xrdp_ls_input_x_pos: 110 +xrdp_ls_input_width: 210 +xrdp_ls_input_y_pos: 220 +xrdp_ls_btn_ok_x_pos: 142 +xrdp_ls_btn_ok_y_pos: 370 +xrdp_ls_btn_cancel_x_pos: 237 +xrdp_ls_btn_cancel_y_pos: 370 lightburn_user: lightburn lightburn_group: lightburn diff --git a/roles/xrdp_apphost/files/KitchenLogo.bmp b/roles/xrdp_apphost/files/KitchenLogo.bmp new file mode 100644 index 0000000..cd5ea6d Binary files /dev/null and b/roles/xrdp_apphost/files/KitchenLogo.bmp differ diff --git a/roles/xrdp_apphost/tasks/main.yml b/roles/xrdp_apphost/tasks/main.yml index b642662..adf5437 100644 --- a/roles/xrdp_apphost/tasks/main.yml +++ b/roles/xrdp_apphost/tasks/main.yml @@ -15,6 +15,13 @@ template: src=sesman.ini.j2 dest=/etc/xrdp/sesman.ini notify: Restart xrdp +- name: Create xrdp directory + file: path=/usr/local/share/xrdp/ state=directory mode=0755 owner=root group=root + +- name: Copy Binary Kitchen Logo + copy: src={{ xrdp_ls_logo_filename }} dest=/usr/local/share/xrdp/{{ xrdp_ls_logo_filename }} + notify: Restart xrdp + - name: Install LightBurn dependencies apt: name: diff --git a/roles/xrdp_apphost/templates/xrdp.ini.j2 b/roles/xrdp_apphost/templates/xrdp.ini.j2 index 3c5a8e6..756de3f 100644 --- a/roles/xrdp_apphost/templates/xrdp.ini.j2 +++ b/roles/xrdp_apphost/templates/xrdp.ini.j2 @@ -100,47 +100,47 @@ grey=dedede ; ; Login Screen Window Title -#ls_title=My Login Title +ls_title={{ xrdp_ls_title }} ; top level window background color in RGB format -ls_top_window_bg_color=009cb5 +ls_top_window_bg_color={{ xrdp_ls_top_window_bg_color }} ; width and height of login screen -ls_width=350 -ls_height=430 +ls_width={{ xrdp_ls_width }} +ls_height={{ xrdp_ls_height }} ; login screen background color in RGB format -ls_bg_color=dedede +ls_bg_color={{ xrdp_ls_bg_color }} ; optional background image filename (bmp format). #ls_background_image= ; logo ; full path to bmp-file or file in shared folder -ls_logo_filename= -ls_logo_x_pos=55 -ls_logo_y_pos=50 +ls_logo_filename=/usr/local/share/xrdp/{{ xrdp_ls_logo_filename }} +ls_logo_x_pos={{ xrdp_ls_logo_x_pos }} +ls_logo_y_pos={{ xrdp_ls_logo_y_pos }} ; for positioning labels such as username, password etc -ls_label_x_pos=30 -ls_label_width=65 +ls_label_x_pos={{ xrdp_ls_label_x_pos }} +ls_label_width={{ xrdp_ls_label_width }} ; for positioning text and combo boxes next to above labels -ls_input_x_pos=110 -ls_input_width=210 +ls_input_x_pos={{ xrdp_ls_input_x_pos }} +ls_input_width={{ xrdp_ls_input_width }} ; y pos for first label and combo box -ls_input_y_pos=220 +ls_input_y_pos={{ xrdp_ls_input_y_pos }} ; OK button -ls_btn_ok_x_pos=142 -ls_btn_ok_y_pos=370 +ls_btn_ok_x_pos={{ xrdp_ls_btn_ok_x_pos }} +ls_btn_ok_y_pos={{ xrdp_ls_btn_ok_y_pos }} ls_btn_ok_width=85 ls_btn_ok_height=30 ; Cancel button -ls_btn_cancel_x_pos=237 -ls_btn_cancel_y_pos=370 +ls_btn_cancel_x_pos={{ xrdp_ls_btn_cancel_x_pos }} +ls_btn_cancel_y_pos={{ xrdp_ls_btn_cancel_y_pos }} ls_btn_cancel_width=85 ls_btn_cancel_height=30