Skip to content

tomkukral/afacts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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. - servis@manufacturere.cz",
        "Product Name": "PCS S121212X10+ SYS",
        "Product Serial": "VR10982102"
    },
    "timestamp": "2016-06-15T15:18:08.065678"

}

About

Advanced Ansible facts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages