Check if spyder is installed before patching spyder
This commit is contained in:
		
							parent
							
								
									f8cbb53cb7
								
							
						
					
					
						commit
						2074c49c3e
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue