From 774f14cca2677b25047ccc17313acc53734bccde Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 23 Dec 2020 15:43:07 +0100 Subject: ws/base some more bits and pieces --- roles/ws/base/tasks/lightdm.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'roles/ws/base/tasks/lightdm.yml') diff --git a/roles/ws/base/tasks/lightdm.yml b/roles/ws/base/tasks/lightdm.yml index 0b90cdc1..57e2aeaf 100644 --- a/roles/ws/base/tasks/lightdm.yml +++ b/roles/ws/base/tasks/lightdm.yml @@ -2,20 +2,20 @@ - name: install lightdm default config when: ws_base_lightdm_defaults is defined copy: + dest: /etc/lightdm/lightdm.conf.d/defaults.conf content: | [Seat:*] {% for option, value in ws_base_lightdm_defaults.items() %} {{ option }}={{ value }} {% endfor %} - dest: /etc/lightdm/lightdm.conf.d/defaults.conf - ## not restarting lightdm because this would logg-off any logged in user! + notify: restart lightdm - name: remove lightdm default config when: ws_base_lightdm_defaults is not defined file: path: /etc/lightdm/lightdm.conf.d/defaults.conf state: absent - ## not restarting lightdm because this would logg-off any logged in user! + notify: restart lightdm - name: install xrandr setup script @@ -23,22 +23,22 @@ block: - name: install xrandr setup script copy: - content: "{{ ws_base_xrandr_setup_script }}" dest: /usr/local/bin/xrandr-setup.sh + content: "{{ ws_base_xrandr_setup_script }}" mode: 0755 - name: install xrandr setup script copy: + dest: /etc/lightdm/lightdm.conf.d/xrandr-setup.conf content: | [Seat:*] greeter-setup-script=/usr/local/bin/xrandr-setup.sh session-setup-script=/usr/local/bin/xrandr-setup.sh - dest: /etc/lightdm/lightdm.conf.d/xrandr-setup.conf - ## not restarting lightdm because this would logg-off any logged in user! + notify: restart lightdm - name: remove xrandr setup script config when: ws_base_xrandr_setup_script is not defined file: path: /etc/lightdm/lightdm.conf.d/xrandr-setup.conf state: absent - ## not restarting lightdm because this would logg-off any logged in user! + notify: restart lightdm -- cgit v1.2.3