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.
ansible/lib/ansible
Trapier Marshall 250620f2ab Add pciid to LinuxNetwork interface fact
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 A better error message for «ansible playbook.yml» 11 years ago
compat Making the switch to v2 11 years ago
config Making the switch to v2 11 years ago
errors Making the switch to v2 11 years ago
executor Reworking internal result flags and making sure include_vars hides vault data 11 years ago
galaxy Make ansible-galaxy work with galaxy.ansible.com 11 years ago
inventory Further cleanup of internal use of ansible_ssh_host 11 years ago
module_utils Add pciid to LinuxNetwork interface fact 11 years ago
modules moved openvz inventory script to new home 11 years ago
new_inventory Making the switch to v2 11 years ago
parsing Encrypt the vault file after editing only if the contents changed 11 years ago
playbook started implementing diff 11 years ago
plugins Additional changes to fix fileglob relative path lookups 11 years ago
template Allowing `args: "{{some_var}}"` for task params again 11 years ago
utils optimized module docs 11 years ago
vars Fix issues with vars_prompt and vars_files 11 years ago
__init__.py Re-adding submodules after moving things around 11 years ago
constants.py started implementing diff 11 years ago
test-requirements.txt Making the switch to v2 11 years ago