community.general/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
}
2015-07-28 07:30:03 +05:30
..
cli A better error message for «ansible playbook.yml» 2015-07-27 12:43:21 +05:30
compat Making the switch to v2 2015-05-03 21:47:26 -05:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors Making the switch to v2 2015-05-03 21:47:26 -05:00
executor Reworking internal result flags and making sure include_vars hides vault data 2015-07-27 14:04:31 -04:00
galaxy Make ansible-galaxy work with galaxy.ansible.com 2015-07-24 16:04:10 -04:00
inventory Further cleanup of internal use of ansible_ssh_host 2015-07-27 10:42:39 -04:00
module_utils Add pciid to LinuxNetwork interface fact 2015-07-28 07:30:03 +05:30
modules moved openvz inventory script to new home 2015-07-27 20:53:53 -04:00
new_inventory Making the switch to v2 2015-05-03 21:47:26 -05:00
parsing Encrypt the vault file after editing only if the contents changed 2015-07-26 14:41:34 +05:30
playbook started implementing diff 2015-07-26 12:22:22 -04:00
plugins Additional changes to fix fileglob relative path lookups 2015-07-27 16:35:57 -04:00
template Allowing args: "{{some_var}}" for task params again 2015-07-24 10:33:12 -04:00
utils optimized module docs 2015-07-27 20:52:53 -04:00
vars Fix issues with vars_prompt and vars_files 2015-07-21 14:52:57 -04:00
__init__.py Re-adding submodules after moving things around 2015-05-03 22:30:51 -05:00
constants.py started implementing diff 2015-07-26 12:22:22 -04:00
test-requirements.txt Making the switch to v2 2015-05-03 21:47:26 -05:00