mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This commit adds pciid to the LinuxNetwork fact object.
pciid is gathered if the symlink /sys/class/net/*/device exists.
Example [>>>> emphasis <<<<]:
$ readlink /sys/class/net/eth0/device
../../../0000:01:00.0
$ ansible localhost --ask-pass -i /tmp/hosts -m setup -a "filter=ansible_eth0"
SSH password:
localhost | success >> {
"ansible_facts": {
"ansible_eth0": {
"active": false,
"device": "eth0",
"macaddress": "0c:d2:92:5d:6e:8e",
"module": "alx",
"mtu": 1500,
>>>> "pciid": "0000:01:00.0", <<<<
"promisc": true,
"type": "ether"
}
},
"changed": false
}
|
11 years ago | |
|---|---|---|
| .. | ||
| cli | 11 years ago | |
| compat | 11 years ago | |
| config | 11 years ago | |
| errors | 11 years ago | |
| executor | 11 years ago | |
| galaxy | 11 years ago | |
| inventory | 11 years ago | |
| module_utils | 11 years ago | |
| modules | 11 years ago | |
| new_inventory | 11 years ago | |
| parsing | 11 years ago | |
| playbook | 11 years ago | |
| plugins | 11 years ago | |
| template | 11 years ago | |
| utils | 11 years ago | |
| vars | 11 years ago | |
| __init__.py | 11 years ago | |
| constants.py | 11 years ago | |
| test-requirements.txt | 11 years ago | |