First release
This commit is contained in:
		
							
								
								
									
										24
									
								
								tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
- name: Nginx Unit | Install packages
 | 
			
		||||
  package:
 | 
			
		||||
    name: "{{ nginx_unit_packages | product([nginx_unit_version]) | map('join', '=') | list }}"
 | 
			
		||||
    state: present
 | 
			
		||||
 | 
			
		||||
- name: Nginx Unit | Deploy config
 | 
			
		||||
  copy:
 | 
			
		||||
    dest: "{{ nginx_unit_config_path }}"
 | 
			
		||||
    content: "{{ nginx_unit_config | to_nice_json }}"
 | 
			
		||||
    mode: "600"
 | 
			
		||||
    owner: root
 | 
			
		||||
    group: root
 | 
			
		||||
  notify: Nginx Unit | Load configuration
 | 
			
		||||
 | 
			
		||||
- name: Nginx Unit | Enable and start
 | 
			
		||||
  service:
 | 
			
		||||
    name: unit
 | 
			
		||||
    state: started
 | 
			
		||||
    enables: yes
 | 
			
		||||
 | 
			
		||||
- name: Nginx Unit | Run handlers
 | 
			
		||||
  meta: flush_handlers
 | 
			
		||||
		Reference in New Issue
	
	Block a user