Skip to content

Latest commit

 

History

History
69 lines (55 loc) · 1.55 KB

README.adoc

File metadata and controls

69 lines (55 loc) · 1.55 KB

Advanced Ansible facts

This role provides advanced ansible facts. It creates file /etc/ansible/facts.d/afacts.fact.

Configuration

  • afacts_rewrite - rewrite existing file

  • afacts_regather - regather facts after the role finishes

Provided information

  • General

    • timestamp

    • IPMI FRU

  • Disks

    • capacity

    • serial number

    • device model

    • firmware

    • rotation rate

Example output

{
    "disks": {
        "sda": {
            "capacity": "4000.8 GB",
            "name": "sda",
            "smart": {
                "firmware": "FL1A",
                "model": "TOSHIBA MG03ACA400",
                "rpm": "7200 rpm",
                "serial": "X5ABCDEFG"
            }
        },
        "sdb": {
            "capacity": "4000.8 GB",
            "name": "sdb",
            "smart": {
                "firmware": "FL1A",
                "model": "TOSHIBA MG03ACA400",
                "rpm": "7200 rpm",
                "serial": "X51234567"
            }
        }
    },
    "ipmi": {
        "Board Mfg": "Supermicro",
        "Board Mfg Date": "Mon Jan  1 01:00:00 1996",
        "Board Serial": "VM12349ABCDE",
        "Chassis Part Number": "CAS ABCDETQ-R740ABC",
        "Chassis Serial": "ABCDELKJFD89994",
        "Chassis Type": "Unspecified",
        "FRU Device Description": "Builtin FRU Device (ID 0)",
        "Product Manufacturer": "Manufacturer, s.r.o. - [email protected]",
        "Product Name": "PCS S121212X10+ SYS",
        "Product Serial": "VR10982102"
    },
    "timestamp": "2016-06-15T15:18:08.065678"

}