eos_facts

Synopsis

Added in version 1.0.0

The eos_facts module collects facts from the EOS for use in Ansible playbooks. It can be used independently as well to discover what facts are availble from the node. This facts module does not cache any facts. If no configuration options are specified, then all facts are returned.

Options

parameter required default choices comments
exclude no
    Specifies the list of facts to exclude when the fact module runs. The exclude list is comma delimited and, when configured, will not return the facts named in the exclude list. All other facts will be returned.
    (added in 1.0.0)
    include no
      Specifies the list of facts to include when the fact module runs. The include list is comma delimited and, when included, will only return the facts named in the include list. All other facts will not be returned.
      (added in 1.0.0)

      Important

      Requires Arista EOS 4.13.7M or later with command API enabled

      Important

      Requires Python Client for eAPI 0.3.0 or later

      Examples


      - name: collect all facts from node
        eos_facts:
      
      - name: include only a filtered set of facts returned
        eos_facts: include=interfaces
      
      - name: exclude a specific set of facts
        eos_facts: exclude=vlans
      

      Note

      Supports eos metaparameters for using the eAPI transport

      Note

      The include and exclude options are mutually exclusive