diff --git a/roles/lmn_tmpfixes/tasks/bookworm.yml b/roles/lmn_tmpfixes/tasks/bookworm.yml index 7713f23..ff89fc8 100644 --- a/roles/lmn_tmpfixes/tasks/bookworm.yml +++ b/roles/lmn_tmpfixes/tasks/bookworm.yml @@ -60,7 +60,13 @@ line: DefaultTimeoutStopSec=5s insertafter: '^#DefaultTimeoutStopSec=.*' +- name: Check if spyder is installed + ansible.builtin.stat: + path: /usr/lib/python3/dist-packages/spyder/plugins/editor/widgets/editor.py + register: spyder + - name: Patch spyder to fix 'file-has-changed' issues on CIFS ansible.posix.patch: src: spyder.patch dest: /usr/lib/python3/dist-packages/spyder/plugins/editor/widgets/editor.py + when: spyder.stat.exists