26 lines
		
	
	
		
			500 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			500 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| ---
 | |
| - name: update apk cache
 | |
|   apk: update_cache=yes
 | |
| 
 | |
| - name: install lighttpd
 | |
|   apk: name=lighttpd state=present
 | |
| 
 | |
| - name: install perl-cgi
 | |
|   apk: name=perl-cgi state=present
 | |
| 
 | |
| - name: deploy lighttpd.conf
 | |
|   template: 
 | |
|     src: lighttpd.conf.j2 
 | |
|     dest: /etc/lighttpd/lighttpd.conf 
 | |
|     owner: root 
 | |
|     group: root
 | |
|     mode: 0644
 | |
|     force: yes
 | |
| 
 | |
| - name: enable lighttpd on boot
 | |
|   command: "/sbin/rc-update add lighttpd default"
 | |
| 
 | |
| - name: start lighttpd
 | |
|   command: "/sbin/rc-service lighttpd start"
 | |
| 
 |