mirror of
				https://gitlab.sectorq.eu/jaydee/ansible.git
				synced 2025-10-30 18:01:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			512 B
		
	
	
	
		
			YAML
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			512 B
		
	
	
	
		
			YAML
		
	
	
		
			Executable File
		
	
	
	
	
| - name: Setup policies
 | |
|   become: "{{ false if inventory_hostname == 'nas.home.lan' else true }}"
 | |
|   block:
 | |
|     - name: Creating a file with content
 | |
|       ansible.builtin.copy:
 | |
|         dest: "/etc/polkit-1/rules.d/50_disable_pol.rules"
 | |
|         content: |
 | |
|           polkit.addRule(function(action, subject) {
 | |
|             if (action.id == "org.freedesktop.NetworkManager.wifi.scan") {
 | |
|                 return polkit.Result.YES;
 | |
|             }
 | |
|           });
 | |
|         mode: '0644'
 | |
|         owner: root
 | |
|         group: root
 |