diff options
Diffstat (limited to 'roles/ws/base/tasks')
-rw-r--r-- | roles/ws/base/tasks/lightdm.yml | 14 | ||||
-rw-r--r-- | roles/ws/base/tasks/main.yml | 24 |
2 files changed, 26 insertions, 12 deletions
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 diff --git a/roles/ws/base/tasks/main.yml b/roles/ws/base/tasks/main.yml index 579df707..6e96eff8 100644 --- a/roles/ws/base/tasks/main.yml +++ b/roles/ws/base/tasks/main.yml @@ -6,6 +6,24 @@ state: present extra_zfs_properties: "{{ ws_base_home_zfs.properties | default({}) | combine({'mountpoint': '/home'}) }}" +- name: hide ntfs disks + when: ws_base_hide_ntfs_disks is defined + import_tasks: hide-ntfs-disks.yml + +- name: configure cleanup of /tmp + when: ws_base_cleanup_tmp is defined + copy: + dest: /etc/tmpfiles.d/00_tmp-override.conf + content: | + d /tmp/ 1777 root root {{ ws_base_cleanup_tmp }} + +- name: reset cleanup of /tmp to default + when: ws_base_cleanup_tmp is not defined + file: + path: /etc/tmpfiles.d/00_tmp-override.conf + state: absent + + - name: prohibited packages loop: - flashplugin-installer @@ -69,15 +87,11 @@ name: /etc/netplan/01-network-manager-all.yaml state: absent + - name: install extra packages apt: name: "{{ ws_base_extra_packages }}" state: present - -- name: hide ntfs disks - when: ws_base_hide_ntfs_disks is defined - import_tasks: hide-ntfs-disks.yml - - name: configure lightdm import_tasks: lightdm.yml |