Quellcode durchsuchen

variable background image

master
Ursprung
Commit
dbb24eb55f
3 geänderte Dateien mit 8 neuen und 4 gelöschten Zeilen
  1. +4
    -0
      defaults/main.yml
  2. +3
    -3
      tasks/main.yml
  3. +1
    -1
      templates/lightdm-gtk-greeter.conf.j2

+ 4
- 0
defaults/main.yml Datei anzeigen

@@ -2,3 +2,7 @@ display_manager_state: multiuser

display_manager_mainentance_text: Wartungsmodus – bitte nicht abschalten!
display_manager_mainentance_icon: preferences-system

display_manager_background_image_url: https://upload.wikimedia.org/wikipedia/commons/5/52/Hubble2005-01-barred-spiral-galaxy-NGC1300.jpg
display_manager_background_image_path: /usr/share/lightdm/background.jpg
display_manager_background_image_checksum: sha256:df1106e46a2cb9ec46fb50c415f9648270bafb11c0762072f9804f8d1705e4b5

+ 3
- 3
tasks/main.yml Datei anzeigen

@@ -43,9 +43,9 @@

- name: download background image
get_url:
url: https://upload.wikimedia.org/wikipedia/commons/5/52/Hubble2005-01-barred-spiral-galaxy-NGC1300.jpg
dest: /usr/share/lightdm/background.jpg
checksum: sha256:df1106e46a2cb9ec46fb50c415f9648270bafb11c0762072f9804f8d1705e4b5
url: "{{display_manager_background_image_url}}"
dest: "{{display_manager_background_image_path}}"
checksum: "{{display_manager_background_image_checksum}}"

- name: lightdm started
service:


+ 1
- 1
templates/lightdm-gtk-greeter.conf.j2 Datei anzeigen

@@ -47,7 +47,7 @@
# transition-duration = overrides default value
#
[greeter]
background=/usr/share/lightdm/background.jpg
background={{display_manager_background_image_path}}
user-background=false
#theme-name=
#icon-theme-name=


Laden…
Abbrechen
Speichern