mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	goal is http://box/archive - clarify Ansible code
This commit is contained in:
		
							parent
							
								
									88a712f548
								
							
						
					
					
						commit
						bd4741add9
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -44,18 +44,18 @@
 | 
			
		|||
    - { src: 'internetarchive.service.j2', dest: '/etc/systemd/system/internetarchive.service' }
 | 
			
		||||
    - { src: 'internetarchive.conf', dest: '/etc/apache2/sites-available/internetarchive.conf' }
 | 
			
		||||
 | 
			
		||||
- name: Create symlink internetarchive.conf from sites-enabled to sites-available, for short URLs http://box/sugar & http://box/internetarchive (if internetarchive_enabled)
 | 
			
		||||
- name: Create symlink internetarchive.conf from sites-enabled to sites-available, for short URL http://box/archive (if debuntu and internetarchive_enabled)
 | 
			
		||||
  file:
 | 
			
		||||
    src: /etc/apache2/sites-available/internetarchive.conf
 | 
			
		||||
    path: /etc/apache2/sites-enabled/internetarchive.conf
 | 
			
		||||
    state: link
 | 
			
		||||
  when: internetarchive_enabled and is_debuntu
 | 
			
		||||
  when: is_debuntu and internetarchive_enabled
 | 
			
		||||
 | 
			
		||||
- name: Remove symlink /etc/apache2/sites-enabled/internetarchive.conf (if not internetarchive_enabled)
 | 
			
		||||
- name: Remove symlink /etc/apache2/sites-enabled/internetarchive.conf (if debuntu and not internetarchive_enabled)
 | 
			
		||||
  file:
 | 
			
		||||
    path: /etc/apache2/sites-enabled/internetarchive.conf
 | 
			
		||||
    state: absent
 | 
			
		||||
  when: not internetarchive_enabled and is_debuntu
 | 
			
		||||
  when: is_debuntu and not internetarchive_enabled
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# RESTART/STOP SYSTEMD SERVICE
 | 
			
		||||
| 
						 | 
				
			
			@ -77,7 +77,7 @@
 | 
			
		|||
    state: stopped
 | 
			
		||||
  when: not internetarchive_enabled
 | 
			
		||||
 | 
			
		||||
- name: Restart Apache service ({{ apache_service }}) to enable/disable http://box/internetarchive (not just http://box:{{ internetarchive_port }})
 | 
			
		||||
- name: Restart Apache service ({{ apache_service }}) to enable/disable http://box/archive (not just http://box:{{ internetarchive_port }})
 | 
			
		||||
  systemd:
 | 
			
		||||
    name: "{{ apache_service }}"    # httpd or apache2
 | 
			
		||||
    state: restarted
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue