Browse Source

display setup

master
parent
commit
ba1d276d56
3 changed files with 15 additions and 1 deletions
  1. +9
    -1
      tasks/main.yml
  2. +3
    -0
      templates/display-setup.sh.j2
  3. +3
    -0
      templates/lightdm.conf.j2

+ 9
- 1
tasks/main.yml View File

@@ -40,7 +40,15 @@
template: template:
src: lightdm-gtk-greeter.conf.j2 src: lightdm-gtk-greeter.conf.j2
dest: /etc/lightdm/lightdm-gtk-greeter.conf dest: /etc/lightdm/lightdm-gtk-greeter.conf
#notify: restart lightdm
notify: restart lightdm

- name: lightdm display setup script
template:
src: display-setup.sh.j2
dest: /etc/lightdm/display-setup.sh
mode: u=rwx,g=rx,o=rx
when: display_setup_commands is defined
notify: restart lightdm


- name: download background image - name: download background image
get_url: get_url:


+ 3
- 0
templates/display-setup.sh.j2 View File

@@ -0,0 +1,3 @@
#!/bin/sh

{{ display_setup_commands | join("\n") }}

+ 3
- 0
templates/lightdm.conf.j2 View File

@@ -82,6 +82,9 @@ autologin-user-timeout=0
user-session=mainentance user-session=mainentance
{% endif %} {% endif %}


{% if display_setup_commands is defined %}
display-setup-script=/etc/lightdm/display-setup.sh
{% endif %}
# #
# XDMCP Server configuration # XDMCP Server configuration
# #


Loading…
Cancel
Save