Add playbook and roles for Audio Pi
This commit is contained in:
		
					parent
					
						
							
								7a869f6330
							
						
					
				
			
			
				commit
				
					
						96ac8de142
					
				
			
		
					 21 changed files with 516 additions and 2 deletions
				
			
		
							
								
								
									
										12
									
								
								playbooks/roles/raspberry_pi_check/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								playbooks/roles/raspberry_pi_check/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| - name: Detect if on Raspberry Pi | ||||
|   ansible.builtin.lineinfile: | ||||
|     path: /proc/cpuinfo | ||||
|     regexp: ".*Raspberry Pi.*" | ||||
|     state: absent | ||||
|   check_mode: true | ||||
|   register: raspberry_pi_check__cpuinfo | ||||
|   changed_when: false | ||||
| - name: Fail when not on Raspberry Pi  # noqa no-handler | ||||
|   when: not raspberry_pi_check__cpuinfo.found | ||||
|   ansible.builtin.fail: | ||||
|     msg: You are not running on Raspberry Pi hardware! | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue