Sfoglia il codice sorgente

background image file from repository

master
parent
commit
f69b33f701
4 ha cambiato i file con 12 aggiunte e 9 eliminazioni
  1. +2
    -3
      defaults/main.yml
  2. BIN
      files/Hubble2005-01-barred-spiral-galaxy-NGC1300.jpg
  3. +9
    -5
      tasks/main.yml
  4. +1
    -1
      templates/lightdm-gtk-greeter.conf.j2

+ 2
- 3
defaults/main.yml Vedi File

@@ -3,6 +3,5 @@ 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
display_manager_background_image: Hubble2005-01-barred-spiral-galaxy-NGC1300.jpg
# source: https://upload.wikimedia.org/wikipedia/commons/5/52/Hubble2005-01-barred-spiral-galaxy-NGC1300.jpg

BIN
files/Hubble2005-01-barred-spiral-galaxy-NGC1300.jpg Vedi File

Before After
Width: 6637  |  Height: 3787  |  Size: 14MB

+ 9
- 5
tasks/main.yml Vedi File

@@ -50,11 +50,15 @@
when: display_setup_commands is defined
notify: restart lightdm

- name: download background image
get_url:
url: "{{display_manager_background_image_url}}"
dest: "{{display_manager_background_image_path}}"
checksum: "{{display_manager_background_image_checksum}}"
- name: background image directory
file:
path: /usr/share/lightdm/background
state: directory

- name: background image
copy:
src: "{{display_manager_background_image}}"
dest: "/usr/share/lightdm/background/{{display_manager_background_image}}"

- name: lightdm started
service:


+ 1
- 1
templates/lightdm-gtk-greeter.conf.j2 Vedi File

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


Loading…
Annulla
Salva