diff --git a/tasks/main.yml b/tasks/main.yml index b3313cd..e5b2fd8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -60,7 +60,7 @@ - name: background image copy: src: "{{display_manager_background_image}}" - dest: "/usr/share/lightdm/background/{{display_manager_background_image}}" + dest: "{{ display_manager_background_image_path }}" - name: lightdm started service: diff --git a/vars/main.yml b/vars/main.yml index efa5f9c..4278fbb 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -2,4 +2,4 @@ _display_manager_valid_states: - multiuser - maintenance -display_manager_background_image_path: /usr/share/lightdm/background/{{display_manager_background_image}} +display_manager_background_image_path: /usr/share/lightdm/background/{{display_manager_background_image|basename}}