mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
	
		
			784 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			784 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| - name: systemd daemon-reload
 | |
|   systemd:
 | |
|     daemon_reload: yes
 | |
| 
 | |
| 
 | |
| - name: Enable & Restart jupyterhub.service
 | |
|   systemd:
 | |
|     name: jupyterhub
 | |
|     enabled: yes
 | |
|     state: restarted
 | |
|   when: jupyterhub_enabled
 | |
| 
 | |
| - name: Disable jupyterhub.service
 | |
|   systemd:
 | |
|     name: jupyterhub
 | |
|     enabled: no
 | |
|     state: stopped
 | |
|   when: not jupyterhub_enabled
 | |
| 
 | |
| 
 | |
| - name: "Install from template: {{ nginx_conf_dir }}/jupyterhub-nginx.conf"
 | |
|   template:
 | |
|     src: jupyterhub-nginx.conf
 | |
|     dest: "{{ nginx_conf_dir }}/"
 | |
|   when: jupyterhub_enabled
 | |
| 
 | |
| - name: Disable {{ nginx_conf_dir }}/jupyterhub-nginx.conf
 | |
|   file:
 | |
|     path: "{{ nginx_conf_dir }}/jupyterhub-nginx.conf"
 | |
|     state: absent
 | |
|   when: not jupyterhub_enabled
 | |
| 
 | |
| - name: Restart 'nginx' systemd service
 | |
|   systemd:
 | |
|     name: nginx
 | |
|     state: restarted
 |