Set options for fragile GUI automation

This commit is contained in:
Kris Lamoureux 2023-07-11 03:13:43 -04:00
parent d9608d2d1b
commit e21eb854d7
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
3 changed files with 18 additions and 8 deletions

View File

@ -21,12 +21,15 @@ users:
groups: groups:
- libvirt - libvirt
favorites: #manage_gui: true
- firefox-esr.desktop
- terminator.desktop
- org.kde.dolphin.desktop
- org.remmina.Remmina.desktop
pinned: #darkmode: true
- firefox-esr.desktop #favorites:
- terminator.desktop # - firefox-esr.desktop
# - terminator.desktop
# - org.kde.dolphin.desktop
# - org.remmina.Remmina.desktop
#pinned:
# - firefox-esr.desktop
# - terminator.desktop

View File

@ -1,3 +1,4 @@
darkmode: false
homedir: "/home/{{ item.name }}" homedir: "/home/{{ item.name }}"
# Follows homelab package list: # Follows homelab package list:
@ -19,5 +20,6 @@ homelab_packages:
- vim - vim
- wget - wget
manage_gui: false
packages: packages:
- "{{ homelab_packages }}" - "{{ homelab_packages }}"

View File

@ -11,6 +11,7 @@
owner: "{{ item.name }}" owner: "{{ item.name }}"
group: "{{ item.name }}" group: "{{ item.name }}"
loop: "{{ users }}" loop: "{{ users }}"
when: manage_gui
- name: Enable KDE dark theme - name: Enable KDE dark theme
copy: copy:
@ -22,11 +23,13 @@
lookandfeeltool -a $(lookandfeeltool --list | grep dark) lookandfeeltool -a $(lookandfeeltool --list | grep dark)
fi fi
loop: "{{ users }}" loop: "{{ users }}"
when: manage_gui and darkmode
- name: Install sqlite3 - name: Install sqlite3
ansible.builtin.apt: ansible.builtin.apt:
name: sqlite3 name: sqlite3
state: present state: present
when: manage_gui and favorites is defined or pinned is defined
- name: Change favorites menu - name: Change favorites menu
ansible.builtin.template: ansible.builtin.template:
@ -34,6 +37,7 @@
dest: "{{ homedir }}/.config/autostart-scripts/favorites.sh" dest: "{{ homedir }}/.config/autostart-scripts/favorites.sh"
mode: a+x mode: a+x
loop: "{{ users }}" loop: "{{ users }}"
when: manage_gui and favorites is defined
- name: Change task manager pinned apps - name: Change task manager pinned apps
ansible.builtin.template: ansible.builtin.template:
@ -41,3 +45,4 @@
dest: "{{ homedir }}/.config/autostart-scripts/pinnedapps.sh" dest: "{{ homedir }}/.config/autostart-scripts/pinnedapps.sh"
mode: a+x mode: a+x
loop: "{{ users }}" loop: "{{ users }}"
when: manage_gui and pinned is defined