Skip to content

DeltaBG/ansible-collection-extended_facts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Collection - Extended facts

Build Status

This is a collection with a module for extended Ansible facts. Currently, the module returns information about:

  • RAID controllers
  • IPMI Adapter
  • smartctl --scan-open
  • MySQL
  • Docker
  • Icinga2

Getting Started

This collection contains the following ressources.

Ressources Comment
plugins/modules/extended_facts.py Main script of module.
plugins/module_utils/facts/extended/raid.py Script for checking about RAID.
plugins/module_utils/facts/extended/ipmi.py Script for checking about IPMI.
plugins/module_utils/facts/extended/smartctl.py Script for checking about block devices using smartctl.
plugins/module_utils/facts/extended/mysql.py Script for checking about MySQL.
plugins/module_utils/facts/extended/docker.py Script for checking about Docker.
plugins/module_utils/facts/extended/icinga2.py Script for checking about Icinga2.

Prerequisites

The only prerequisite is to have an Ansible >= 2.9

Smartmontools

If you want the module to return information from smartctl, you need to have a smartmontools package installed on each node.

Installing

From Galaxy:

ansible-galaxy collection install deltabg.extended_facts

From GitHub:

ansible-galaxy collection install git+https://github.com/deltabg/ansible-collection-extended_facts.git,master

To install via the requirements.yml file:

collections:
  - name: deltabg.extended_facts

or

collections:
  - name: https://github.com/deltabg/ansible-collection-extended_facts.git
    type: git
    version: master

Example usage in playbook

---
- name: Get extended facts
  hosts: all
  gather_facts: no
  tasks:

    - name: Install smartmontools to receive data from smartctl
      package:
        name: smartmontools

    - name: Gather extended facts
      deltabg.extended_facts.extended_facts:

    # Print extended facts
    - name: Debug
      debug:
        var: ansible_facts

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages