• chevron_right

      Ideas for using Ansible local facts

      pubsub.slavino.sk / jpmens.net · Monday, 10 October, 2022 - 22:00

    I was asked today whether I’ve a list of ideas for using Ansible ’s local facts , and my answer was, sadly, ‘no’. I thought I’d start one with the help of my Ansible followers.

    • I often say data from special sensors can be reported on by an executable fact file.
    • Andreas reports they use executable facts to report on nginx vhosts, MySQL databases, Docker containers, installed software such as PHP and Node versions, and last patch date of the node. They use this data with ansible-cmdb , and they MOTD (message of the day) files with Ansible. example MOTD
    • Nicolai uses executable fact files to report on custom hardware information for their RevPi HAT EEPROM and detected IO modules for automatic configuration templates.
    • An idea I once heard was to use fact files to “enable” and/or “disable” nodes or services on the nodes. These were hot-standby nodes which used fact files to report they were available (or not).

    Do let me know, please, how you use local facts (files or executables); I’m really interested.


    Značky: #Network

    • wifi_tethering open_in_new

      This post is public

      jpmens.net /2022/10/11/ideas-for-using-ansible-local-facts/