aboutsummaryrefslogtreecommitdiffstats
path: root/roles/udev/README.md
blob: 854f147764a8b4de5cc36c82122065bd74ea0137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
udev
=====

Description
-----------

The `udev` role configures specified udev rules and generates a powersave
blacklist based on vendor and device IDs.


Variables
---------

This role **accepts** the following variables:

Variable                       | Default | Description
-------------------------------|---------|------------
`udev_rules`                   | `[]`    | List of udev rules (see [format](#udev_rules) below)
`udev_pci_powersave_blacklist` | `[]`    | List of PCI devices with powersaving disabled (`vendorid:productid`)

### udev\_rules

The `udev_rules` variable is used to add udev rulesets. It should contain a
list of dictionaries of the following format:

Key    | Default   | Description
-------|-----------|------------
`name` |      | Name of rule under `/etc/udev/rules.d`
`rule` |      | Rule content

Usage
-----

Example playbook:

````yaml
- name: disable powersaving for NIC
  hosts: linux_desktops
  roles:
    - role: udev
      vars:
        udev_pci_powersave_blacklist:
          - 8086:43e0
````