mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-07-01 15:38:33 +02:00
initial
This commit is contained in:
12
roles/prevent_policy/tasks/main.yml
Executable file
12
roles/prevent_policy/tasks/main.yml
Executable 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 }}"
|
||||
|
Reference in New Issue
Block a user