mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			551 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			551 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| - name: Enable http://box/awstats via NGINX, by installing {{ nginx_conf_dir }}/awstats-nginx.conf from template
 | |
|   template:
 | |
|     src: awstats-nginx.conf
 | |
|     dest: "{{ nginx_conf_dir }}/"    # /etc/nginx/conf.d
 | |
|   when: awstats_enabled
 | |
| 
 | |
| - name: Disable http://box/awstats via NGINX, by removing {{ nginx_conf_dir }}/awstats-nginx.conf
 | |
|   file:
 | |
|     path: "{{ nginx_conf_dir }}/awstats-nginx.conf"    # /etc/nginx/conf.d
 | |
|     state: absent
 | |
|   when: not awstats_enabled
 | |
| 
 | |
| - name: Restart 'nginx' systemd service
 | |
|   systemd:
 | |
|     name: nginx
 | |
|     state: restarted
 |