Fix enabling spi
This commit is contained in:
		
							parent
							
								
									5a1d171ff8
								
							
						
					
					
						commit
						83ca8b8d48
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -31,11 +31,12 @@ | ||||||
|     dest: "{{ (config_path, 'dietpi-wifi.txt') | path_join }}" |     dest: "{{ (config_path, 'dietpi-wifi.txt') | path_join }}" | ||||||
|   when: dietpi.auto_setup.net_wifi_enabled | default(False) |   when: dietpi.auto_setup.net_wifi_enabled | default(False) | ||||||
|   become: true |   become: true | ||||||
| - name: Enable spi in boot.txt | - name: Enable spi in config.txt | ||||||
|   ansible.builtin.replace: |   ansible.builtin.replace: | ||||||
|     path: "{{ (config_path, 'boot.txt') | path_join }}" |     path: "{{ (config_path, 'config.txt') | path_join }}" | ||||||
|     regexp: '^#dtparam=spi=off$' |     regexp: '^#dtparam=spi=off$' | ||||||
|     replace: 'dtparam=spi=on' |     replace: 'dtparam=spi=on' | ||||||
|  |   become: true | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| - name: Try to copy Automation_Custom_Script.sh | - name: Try to copy Automation_Custom_Script.sh | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue