workstation/roles/common/tasks/gui.yml

57 lines
1.4 KiB
YAML
Raw Permalink Normal View History

- name: Install KDE
ansible.builtin.apt:
name: kde-standard
state: present
update_cache: true
2021-11-28 04:31:33 +00:00
- name: Create autostart-scripts directory
file:
path: "{{ homedir }}/.config/autostart-scripts/"
2021-11-28 04:31:33 +00:00
state: directory
owner: "{{ item.name }}"
group: "{{ item.name }}"
2021-11-28 04:31:33 +00:00
loop: "{{ users }}"
- name: Enable KDE dark theme
copy:
dest: "{{ homedir }}/.config/autostart-scripts/darkmode.sh"
2021-11-28 04:31:33 +00:00
mode: a+x
content: |
#!/bin/bash
if ! grep -q "ColorScheme=BreezeDark" ~/.config/kdeglobals; then
lookandfeeltool -a $(lookandfeeltool --list | grep dark)
fi
loop: "{{ users }}"
2021-12-06 05:57:07 +00:00
- name: Install packages
ansible.builtin.apt:
2021-12-06 05:57:07 +00:00
name: "{{ item }}"
loop: "{{ packages }}"
- name: Install sqlite3
ansible.builtin.apt:
2021-12-06 05:57:07 +00:00
name: sqlite3
state: present
- name: Change favorites menu
ansible.builtin.template:
2021-12-06 05:57:07 +00:00
src: favorites.sh.j2
dest: "{{ homedir }}/.config/autostart-scripts/favorites.sh"
2021-12-06 05:57:07 +00:00
mode: a+x
loop: "{{ users }}"
- name: Change task manager pinned apps
ansible.builtin.template:
src: pinnedapps.sh.j2
dest: "{{ homedir }}/.config/autostart-scripts/pinnedapps.sh"
mode: a+x
loop: "{{ users }}"
- name: Ensure we have our own comment added to /etc/services
ansible.builtin.lineinfile:
path: "{{ homedir }}/.config/autostart-scripts/pinnedapps.sh"
regexp: '^# port for http'
insertbefore: '^www.*80/tcp'
line: '# port for http by default'
loop: "{{ users }}"