mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Create apache.yml
This commit is contained in:
		
							parent
							
								
									b23f1f1638
								
							
						
					
					
						commit
						05e65614a0
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								roles/wordpress/tasks/apache.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								roles/wordpress/tasks/apache.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
- name: Enable http://box{{ wp_url }} via Apache
 | 
			
		||||
  command: a2ensite wordpress.conf
 | 
			
		||||
  when: wordpress_enabled
 | 
			
		||||
 | 
			
		||||
- name: Disable http://box{{ wp_url }} via Apache
 | 
			
		||||
  command: a2dissite wordpress.conf
 | 
			
		||||
  when: not wordpress_enabled
 | 
			
		||||
 | 
			
		||||
- name: Restart Apache systemd service ({{ apache_service }})
 | 
			
		||||
  systemd:
 | 
			
		||||
    name: "{{ apache_service }}"    # apache2 or httpd, as set in /opt/iiab/iiab/vars/<OS>.yml
 | 
			
		||||
    state: restarted
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue