mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	remove enabling of captive-portal service
This commit is contained in:
		
							parent
							
								
									eed584766f
								
							
						
					
					
						commit
						5f8eeacffa
					
				
					 1 changed files with 20 additions and 20 deletions
				
			
		|  | @ -43,13 +43,13 @@ | |||
| - name: Run iiab-uncatch to generate diversion lists for dnsmasq and apache2 | ||||
|   shell: /usr/bin/iiab-uncatch | ||||
|       | ||||
| - name: Install systemd unit file captive-portal.service from template | ||||
|   template: | ||||
|     src: roles/captive-portal/templates/captive-portal.service.j2 | ||||
|     dest: /etc/systemd/system/captive-portal.service | ||||
|     owner: root | ||||
|     group: root | ||||
|     mode: 0644 | ||||
| #- name: Install systemd unit file captive-portal.service from template | ||||
| #  template: | ||||
| #    src: roles/captive-portal/templates/captive-portal.service.j2 | ||||
| #    dest: /etc/systemd/system/captive-portal.service | ||||
| #    owner: root | ||||
| #    group: root | ||||
| #    mode: 0644 | ||||
| 
 | ||||
| - name: Install Apache's captive-portal.conf from template if captive_portal_enabled | ||||
|   template: | ||||
|  | @ -74,20 +74,20 @@ | |||
|     state: link | ||||
|   when: captive_portal_enabled and is_debuntu | ||||
| 
 | ||||
| - name: Enable & Start systemd service captive-portal.service if captive_portal_enabled | ||||
|   systemd: | ||||
|     name: captive-portal.service | ||||
|     daemon-reload: yes | ||||
|     enabled: yes | ||||
|     state: started | ||||
|   when: captive_portal_enabled | ||||
| #- name: Enable & Start systemd service captive-portal.service if captive_portal_enabled | ||||
| #  systemd: | ||||
| #    name: captive-portal.service | ||||
| #    daemon-reload: yes | ||||
| #    enabled: yes | ||||
| #    state: started | ||||
| #  when: captive_portal_enabled | ||||
| 
 | ||||
| - name: Disable & Stop captive-portal.service if not captive_portal_enabled | ||||
|   systemd: | ||||
|     name: captive-portal.service | ||||
|     enabled: no | ||||
|     state: stopped | ||||
|   when: not captive_portal_enabled | ||||
| #- name: Disable & Stop captive-portal.service if not captive_portal_enabled | ||||
| #  systemd: | ||||
| #    name: captive-portal.service | ||||
| #    enabled: no | ||||
| #    state: stopped | ||||
| #  when: not captive_portal_enabled | ||||
| 
 | ||||
| - name: Disable Apache's captive-portal.conf if not captive_portal_enabled (debuntu) | ||||
|   file: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue