community.network.ce_facts module – Gets facts about HUAWEI CloudEngine switches.
Note
This module is part of the community.network collection (version 5.1.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.network
.
To use it in a playbook, specify: community.network.ce_facts
.
Note
The community.network collection has been deprecated and will be removed from Ansible 12. See the discussion thread for more information.
DEPRECATED
- Removed in:
version 6.0.0
- Why:
This collection and all content in it is unmaintained and deprecated.
- Alternative:
Unknown.
Synopsis
Collects facts from CloudEngine devices running the CloudEngine operating system. Fact collection is supported over Cli transport. This module prepends all of the base network fact keys with
ansible_net_<fact>
. The facts module will always collect a base set of facts from the device and can enable or disable collection of additional facts.
Aliases: network.cloudengine.ce_facts
Parameters
Parameter |
Comments |
---|---|
When supplied, this argument will restrict the facts collected to a given subset. Possible values for this argument include all, hardware, config, and interfaces. Can specify a list of values to include a larger subset. Values can also be used with an initial Default: |
Notes
Note
Recommended connection is
network_cli
.This module also works with
local
connections for legacy playbooks.
Examples
# Note: examples below use the following provider dict to handle
# transport and authentication to the node.
- name: CloudEngine facts test
hosts: cloudengine
connection: local
gather_facts: false
vars:
cli:
host: "{{ inventory_hostname }}"
port: "{{ ansible_ssh_port }}"
username: "{{ username }}"
password: "{{ password }}"
transport: cli
tasks:
- name: "Gather_subset is all"
community.network.ce_facts:
gather_subset: all
provider: "{{ cli }}"
- name: "Collect only the config facts"
community.network.ce_facts:
gather_subset: config
provider: "{{ cli }}"
- name: "Do not collect hardware facts"
community.network.ce_facts:
gather_subset: "!hardware"
provider: "{{ cli }}"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
All IPv4 addresses configured on the device Returned: when interfaces is configured |
|
The BIOS version running on the remote device Returned: always |
|
The board type of the remote device Returned: always |
|
The current system configuration on the device Returned: when config is configured |
|
The CPLD1 Version running the remote device Returned: always |
|
The CPLD2 Version running the remote device Returned: always |
|
The fan state on the device Returned: when hardware is configured |
|
The filesystems on the device Returned: when hardware is configured |
|
The flash free space on the device Returned: when hardware is configured |
|
The flash total space on the device Returned: when hardware is configured |
|
The list of fact subsets collected from the device Returned: always |
|
The hostname of the remote device Returned: always |
|
A hash of all interfaces running on the system Returned: when interfaces is configured |
|
The MAB Version running the remote device Returned: always |
|
The memory free space on the remote device Returned: when hardware is configured |
|
The memory total space on the remote device Returned: when hardware is configured |
|
The list of LLDP neighbors from the remote device Returned: when interfaces is configured |
|
The PCB Version running the remote device Returned: always |
|
The power state on the device Returned: when hardware is configured |
Status
This module will be removed in version 6.0.0. [deprecated]
For more information see DEPRECATED.