.. Document meta :orphan: .. |antsibull-internal-nbsp| unicode:: 0xA0 :trim: .. meta:: :antsibull-docs: 2.23.0 .. Anchors .. _ansible_collections.amnesh.soodar.soodar_facts_module: .. Anchors: short name for ansible.builtin .. Title amnesh.soodar.soodar_facts module -- Collect facts from remote devices running Amnesh SoodarOS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. Collection note .. note:: This module is part of the `amnesh.soodar collection `_ (version 2.0.0). It is not included in ``ansible-core``. To check whether it is installed, run :code:`ansible-galaxy collection list`. To install it, use: :code:`ansible\-galaxy collection install https://soodar.ir/ansible/amnesh.soodar.tar.gz`. To use it in a playbook, specify: :code:`amnesh.soodar.soodar_facts`. .. version_added .. contents:: :local: :depth: 1 .. Deprecated Synopsis -------- .. Description - Collects a base set of device facts from a remote device that is running Soodar. This module prepends all of the base network fact keys with :literal:`ansible\_net\_\`. The facts module will always collect a base set of facts from the device and can enable or disable collection of additional facts. .. note:: This module has a corresponding :ref:`action plugin `. .. Aliases .. Requirements .. Options Parameters ---------- .. tabularcolumns:: \X{1}{3}\X{2}{3} .. list-table:: :width: 100% :widths: auto :header-rows: 1 :class: longtable ansible-option-table * - Parameter - Comments * - .. raw:: html
.. _ansible_collections.amnesh.soodar.soodar_facts_module__parameter-available_network_resources: .. rst-class:: ansible-option-title **available_network_resources** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
When 'True' a list of network resources for which resource modules are available will be provided. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.soodar_facts_module__parameter-gather_network_resources: .. rst-class:: ansible-option-title **gather_network_resources** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`list` / :ansible-option-elements:`elements=string` .. raw:: html
- .. raw:: html
When supplied, this argument will restrict the facts collected to a given subset. Possible values for this argument include all and the resources like interfaces, acls etc. Can specify a list of values to include a larger subset. Values can also be used with an initial :literal:`M(!`\ ) to specify that a specific subset should not be collected. Valid subsets are 'all', 'interfaces', 'ospfv2', 'ospf\_interfaces' 'l3\_interfaces', 'acl\_interfaces', 'static\_routes', 'acls'. .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.soodar_facts_module__parameter-gather_subset: .. rst-class:: ansible-option-title **gather_subset** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`list` / :ansible-option-elements:`elements=string` .. raw:: html
- .. raw:: html
When supplied, this argument restricts the facts collected to a given subset. Possible values for this argument include :literal:`all`\ , :literal:`config`\ , and :literal:`interfaces`. Specify a list of values to include a larger subset. Use a value with an initial :literal:`!` to collect all facts except that subset. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`["!config"]` .. raw:: html
.. Attributes .. Notes Notes ----- .. note:: - Tested against Soodar 23.11. - This module works with connection :literal:`network\_cli`. See \ `https://docs.ansible.com/ansible/latest/network/user\_guide/platform\_ios.html `__ .. Seealso .. Examples Examples -------- .. code-block:: yaml+jinja - name: Gather all legacy facts amnesh.soodar.soodar_facts: gather_subset: all - name: Gather only the config and default facts amnesh.soodar.soodar_facts: gather_subset: - config - name: Do not gather interface facts amnesh.soodar.soodar_facts: gather_subset: - "!interfaces" - name: Gather legacy and resource facts amnesh.soodar.soodar_facts: gather_subset: all gather_network_resources: all - name: Gather only the interfaces resource facts and no legacy facts amnesh.soodar.soodar_facts: gather_subset: - "!all" - "!min" gather_network_resources: - interfaces - name: Gather interfaces resource and minimal legacy facts amnesh.soodar.soodar_facts: gather_subset: min gather_network_resources: interfaces - name: Gather L2 interfaces resource and minimal legacy facts amnesh.soodar.soodar_facts: gather_subset: min gather_network_resources: ospf_interfaces - name: Gather L3 interfaces resource and minimal legacy facts amnesh.soodar.soodar_facts: gather_subset: min gather_network_resources: l3_interfaces .. Facts .. Return values Return Values ------------- Common return values are documented :ref:`here `, the following are the fields unique to this module: .. tabularcolumns:: \X{1}{3}\X{2}{3} .. list-table:: :width: 100% :widths: auto :header-rows: 1 :class: longtable ansible-option-table * - Key - Description * - .. raw:: html
.. _ansible_collections.amnesh.soodar.soodar_facts_module__return-ansible_net_gather_network_resources: .. rst-class:: ansible-option-title **ansible_net_gather_network_resources** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`list` / :ansible-option-elements:`elements=string` .. raw:: html
- .. raw:: html
The list of fact for network resource subsets collected from the device .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` when the resource is configured .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.soodar_facts_module__return-ansible_net_gather_subset: .. rst-class:: ansible-option-title **ansible_net_gather_subset** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`list` / :ansible-option-elements:`elements=string` .. raw:: html
- .. raw:: html
The list of fact subsets collected from the device .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` always .. raw:: html
.. Status (Presently only deprecated) .. Authors Authors ~~~~~~~ - Peter Sprygada (@privateip) - Sumit Jaiswal (@justjais) - Mahdi Varasteh (@m-varasteh) .. Extra links Collection links ~~~~~~~~~~~~~~~~ .. ansible-links:: - title: "Issue Tracker" url: "http://soodar.ir/issue/tracker" external: true - title: "Homepage" url: "http://soodar.ir" external: true .. Parsing errors