Add ola and foobazdmx role and add playbook for light.z9
This commit is contained in:
		
					parent
					
						
							
								35217737ce
							
						
					
				
			
			
				commit
				
					
						aefdd123a4
					
				
			
		
					 16 changed files with 168 additions and 0 deletions
				
			
		
							
								
								
									
										5
									
								
								playbooks/roles/ola/handlers/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								playbooks/roles/ola/handlers/main.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| - name: Restart olad | ||||
|   ansible.builtin.systemd: | ||||
|     service: olad.service | ||||
|     state: restarted | ||||
|     daemon-reload: true | ||||
							
								
								
									
										8
									
								
								playbooks/roles/ola/meta/argument_specs.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								playbooks/roles/ola/meta/argument_specs.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| --- | ||||
| argument_specs: | ||||
|   main: | ||||
|     options: | ||||
|       ola__enable_ftdi: | ||||
|         description: Enable FTDI USB DMX support | ||||
|         type: bool | ||||
|         required: true | ||||
							
								
								
									
										8
									
								
								playbooks/roles/ola/meta/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								playbooks/roles/ola/meta/main.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| --- | ||||
| dependencies: | ||||
|   - role: distribution_check | ||||
|     vars: | ||||
|       distribution_check__supported_distributions: | ||||
|         - name: Debian | ||||
|           versions: | ||||
|             - "11" | ||||
							
								
								
									
										15
									
								
								playbooks/roles/ola/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								playbooks/roles/ola/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | |||
| - name: Install ola | ||||
|   ansible.builtin.apt: | ||||
|     name: ola | ||||
| - name: Generate ola-ftdidmx.conf | ||||
|   ansible.builtin.template: | ||||
|     src: ola-ftdidmx.conf.j2 | ||||
|     dest: /etc/ola/ola-ftdidmx.conf | ||||
|     mode: "0664" | ||||
|     owner: olad | ||||
|     group: olad | ||||
| - name: Enable and start ola service | ||||
|   ansible.builtin.systemd: | ||||
|     name: olad.service | ||||
|     state: started | ||||
|     enabled: true | ||||
							
								
								
									
										2
									
								
								playbooks/roles/ola/templates/ola-ftdidmx.conf.j2
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								playbooks/roles/ola/templates/ola-ftdidmx.conf.j2
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,2 @@ | |||
| enabled = {{ ola__enable_ftdi | string | lower }} | ||||
| frequency = 30 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue