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