|
1 | 1 | --- |
2 | 2 | # GNOME dconf settings for RDP optimization |
| 3 | +# Uses system-wide dconf profile (/etc/dconf/db/local.d/) instead of |
| 4 | +# per-user dconf writes, which require a D-Bus session and fail over SSH. |
3 | 5 |
|
4 | 6 | # Note: Most RDP settings are configured via grdctl in service.yml |
5 | | -# This file handles GNOME desktop optimizations for RDP performance |
6 | | -# psutil is installed in developer/tasks/init.yml (consolidated there for all GNOME tasks) |
| 7 | +# This file handles GNOME desktop optimisations for RDP performance |
7 | 8 |
|
8 | | -- name: Disable GNOME animations for RDP performance |
9 | | - community.general.dconf: |
10 | | - key: "/org/gnome/desktop/interface/enable-animations" |
11 | | - value: "false" |
12 | | - state: present |
13 | | - become: false |
| 9 | +- name: Deploy RDP performance dconf profile |
| 10 | + ansible.builtin.copy: |
| 11 | + src: dconf-rdp-performance |
| 12 | + dest: /etc/dconf/db/local.d/00-rdp-performance |
| 13 | + mode: '0644' |
| 14 | + register: rdp_dconf_deployed |
14 | 15 | when: |
15 | 16 | - ansible_facts['distribution'] in ['Fedora', 'Ubuntu'] |
16 | 17 | - has_gnome |
17 | 18 |
|
| 19 | +- name: Update dconf database |
| 20 | + ansible.builtin.command: |
| 21 | + cmd: dconf update |
| 22 | + when: |
| 23 | + - ansible_facts['distribution'] in ['Fedora', 'Ubuntu'] |
| 24 | + - has_gnome |
| 25 | + - rdp_dconf_deployed.changed | default(false) |
| 26 | + changed_when: true |
| 27 | + |
18 | 28 | - name: Display dconf status |
19 | 29 | ansible.builtin.debug: |
20 | | - msg: "GNOME Remote Desktop configured via grdctl (system service mode) - animations disabled for RDP performance" |
| 30 | + msg: "GNOME Remote Desktop configured via grdctl (system service mode) - animations disabled via system dconf profile" |
21 | 31 | when: |
22 | 32 | - ansible_facts['distribution'] in ['Fedora', 'Ubuntu'] |
23 | 33 | - has_gnome |
0 commit comments