mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	scripts only apply to the RPi
This commit is contained in:
		
							parent
							
								
									ceb4d7d901
								
							
						
					
					
						commit
						5a0a37d064
					
				
					 2 changed files with 9 additions and 10 deletions
				
			
		|  | @ -31,6 +31,7 @@ | |||
|     owner: root | ||||
|     group: root | ||||
|     mode: 0755 | ||||
|   when: is_rpi | ||||
| 
 | ||||
| - name: Create /usr/bin/iiab-hotspot-off from template | ||||
|   template: | ||||
|  | @ -39,6 +40,7 @@ | |||
|     owner: root | ||||
|     group: root | ||||
|     mode: 0755 | ||||
|   when: is_rpi | ||||
| 
 | ||||
| - name: Disable the Access Point 'hostapd' service | ||||
|   systemd: | ||||
|  | @ -52,3 +54,10 @@ | |||
|     name: hostapd | ||||
|     enabled: yes | ||||
|   when: hostapd_enabled and iiab_wireless_lan_iface is defined and iiab_network_mode != "Appliance" | ||||
| 
 | ||||
| - name: Record HOSTAPD_ENABLED to /etc/iiab/iiab.env | ||||
|   lineinfile: | ||||
|     dest: /etc/iiab/iiab.env | ||||
|     regexp: '^HOSTAPD_ENABLED=*' | ||||
|     line: 'HOSTAPD_ENABLED={{ hostapd_enabled }}' | ||||
|     state: present | ||||
|  |  | |||
|  | @ -19,16 +19,6 @@ | |||
| # be encapsulated into roles/network/tasks/hostapd.yml in future?  Whereas | ||||
| # today "./runtags hostapd" doesn't exist & "./runtags AP" is UNSUPPORTED! | ||||
| 
 | ||||
| - name: Record HOSTAPD_ENABLED to /etc/iiab/iiab.env | ||||
|   lineinfile: | ||||
|     dest: /etc/iiab/iiab.env | ||||
|     regexp: '^HOSTAPD_ENABLED=*' | ||||
|     line: 'HOSTAPD_ENABLED={{ hostapd_enabled }}' | ||||
|     state: present | ||||
|   #when: not installing   #REMOVE THIS LINE IF installing IS ALWAYS false AS SET IN roles/0-init/defaults/main.yml | ||||
|   tags: | ||||
|     - network | ||||
| 
 | ||||
| #- name: RPi - reboot to AP post install - installed via wifi so the services are ready | ||||
| #  set_fact: | ||||
| #    iiab_lan_iface: br0 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue