mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	move home-page so admin-console can modify the setting
This commit is contained in:
		
							parent
							
								
									c9178ee72f
								
							
						
					
					
						commit
						658fd199d1
					
				
					 4 changed files with 2 additions and 6 deletions
				
			
		
							
								
								
									
										16
									
								
								roles/home-page/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								roles/home-page/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| - name: Create home directory | ||||
|   file: path={{ doc_root }}/home | ||||
|         mode=0755 | ||||
|         owner={{ apache_user }} | ||||
|         group={{ apache_user }} | ||||
|         state=directory | ||||
| 
 | ||||
| - name: Install admin home page into apache2 | ||||
|   template: src=iiab-home-page.conf | ||||
|             dest=/etc/{{ apache_config_dir }}/iiab-home-page.conf | ||||
| 
 | ||||
| - name: Enable the home page | ||||
|   file: src=/etc/{{ apache_config_dir }}/iiab-home-page.conf | ||||
|         dest=/etc/apache2/sites-enabled/iiab-home-page.conf | ||||
|         state=link | ||||
|   when: is_debuntu | ||||
							
								
								
									
										9
									
								
								roles/home-page/templates/iiab-home-page.conf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								roles/home-page/templates/iiab-home-page.conf
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | |||
| # XSCE Home Page | ||||
| 
 | ||||
| # Redirect to home page on School Server | ||||
| # Default is xs-portal | ||||
| 
 | ||||
| # RedirectMatch of root to home page | ||||
| # See the note in default_vars.yml | ||||
| 
 | ||||
| RedirectMatch ^/$ {{ iiab_home_url }} | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue