This commit is contained in:
jaydee
2024-12-12 22:08:32 +01:00
parent 1897f95464
commit 5ec4037fa3
3 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1,12 @@
- 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 }}"