summaryrefslogtreecommitdiff
path: root/plugins/modules/vyos_facts.py
diff options
context:
space:
mode:
authorRohit <rohitthakur2590@outlook.com>2020-06-01 13:05:52 +0530
committerGitHub <noreply@github.com>2020-06-01 07:35:52 +0000
commit06235439435396c852535c2569542939bf65ef43 (patch)
treeff9facb3636f13b205bea0d14c7b0c9b12e3f18a /plugins/modules/vyos_facts.py
parent24a6864db07e5f61cdd952a528d4fd6c147d8db4 (diff)
downloadvyos-ansible-collection-06235439435396c852535c2569542939bf65ef43.tar.gz
vyos-ansible-collection-06235439435396c852535c2569542939bf65ef43.zip
[VyOS: ]all modules updated with FQCN and new doc changes (#33)
[VyOS: ]all modules updated with FQCN and new doc changes Reviewed-by: https://github.com/apps/ansible-zuul
Diffstat (limited to 'plugins/modules/vyos_facts.py')
-rw-r--r--plugins/modules/vyos_facts.py33
1 files changed, 14 insertions, 19 deletions
diff --git a/plugins/modules/vyos_facts.py b/plugins/modules/vyos_facts.py
index 72b191c..7521a3b 100644
--- a/plugins/modules/vyos_facts.py
+++ b/plugins/modules/vyos_facts.py
@@ -8,20 +8,15 @@ The module file for vyos_facts
"""
-ANSIBLE_METADATA = {
- "metadata_version": "1.1",
- "status": [u"preview"],
- "supported_by": "network",
-}
-
-
-DOCUMENTATION = """module: vyos_facts
+DOCUMENTATION = """
+module: vyos_facts
short_description: Get facts about vyos devices.
description:
- Collects facts from network devices running the vyos operating system. This module
places the facts gathered in the fact tree keyed by the respective resource name. The
facts module will always collect a base set of facts from the device and can enable
or disable collection of additional facts.
+version_added: 1.0.0
author:
- Nathaniel Case (@qalthos)
- Nilashish Chakraborty (@Nilashishc)
@@ -54,33 +49,33 @@ options:
EXAMPLES = """
# Gather all facts
-- vyos_facts:
+- vyos.vyos.vyos_facts:
gather_subset: all
gather_network_resources: all
# collect only the config and default facts
-- vyos_facts:
+- vyos.vyos.vyos_facts:
gather_subset: config
# collect everything exception the config
-- vyos_facts:
- gather_subset: "!config"
+- vyos.vyos.vyos_facts:
+ gather_subset: '!config'
# Collect only the interfaces facts
-- vyos_facts:
+- vyos.vyos.vyos_facts:
gather_subset:
- - '!all'
- - '!min'
+ - '!all'
+ - '!min'
gather_network_resources:
- - interfaces
+ - interfaces
# Do not collect interfaces facts
-- vyos_facts:
+- vyos.vyos.vyos_facts:
gather_network_resources:
- - "!interfaces"
+ - '!interfaces'
# Collect interfaces and minimal default facts
-- vyos_facts:
+- vyos.vyos.vyos_facts:
gather_subset: min
gather_network_resources: interfaces
"""