2024-12-12 22:08:32 +01:00

13 lines
399 B
YAML
Executable File

- block:
- name: Creating a file with content
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;
}
});
become: "{{ false if inventory_hostname == 'nas.home.lan' else true }}"