New in version 2.4.
| Parameter | Choices/Defaults | Comments |
|---|---|---|
| channel_id | Number of a channel. The value is an integer ranging from 0 to 9. The default value is 0. | |
| debug_enable |
| Whether a device is enabled to output debugging information. |
| debug_level |
| Debug level permitted to output. |
| debug_time_stamp |
| Timestamp type of debugging information. |
| module_name | Module name of the rule. The value is a string of 1 to 31 case-insensitive characters. The default value is default. Please use lower-case letter, such as [aaa, acl, arp, bfd]. | |
| state |
| Specify desired state of the resource. |
- name: CloudEngine info center debug test
hosts: cloudengine
connection: local
gather_facts: no
vars:
cli:
host: "{{ inventory_hostname }}"
port: "{{ ansible_ssh_port }}"
username: "{{ username }}"
password: "{{ password }}"
transport: cli
tasks:
- name: "Config debug time stamp"
ce_info_center_debug:
state: present
debug_time_stamp: date_boot
provider: "{{ cli }}"
- name: "Undo debug time stamp"
ce_info_center_debug:
state: absent
debug_time_stamp: date_boot
provider: "{{ cli }}"
- name: "Config debug module log level"
ce_info_center_debug:
state: present
module_name: aaa
channel_id: 1
debug_enable: true
debug_level: error
provider: "{{ cli }}"
- name: "Undo debug module log level"
ce_info_center_debug:
state: absent
module_name: aaa
channel_id: 1
debug_enable: true
debug_level: error
provider: "{{ cli }}"
Common return values are documented here, the following are the fields unique to this module:
| Key | Returned | Description |
|---|---|---|
| changed boolean | always | check to see if a change was made on the device Sample: True |
| end_state dict | always | k/v pairs of aaa params after module execution Sample: {'debugTimeStamp': 'DATE_BOOT'} |
| existing dict | always | k/v pairs of existing aaa server Sample: {'debugTimeStamp': 'DATE_MILLISECOND'} |
| proposed dict | always | k/v pairs of parameters passed into module Sample: {'state': 'present', 'debug_time_stamp': 'date_boot'} |
| updates list | always | command sent to the device Sample: ['info-center timestamp debugging boot'] |
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is flagged as community which means that it is maintained by the Ansible Community. See Module Maintenance & Support for more info.
For a list of other modules that are also maintained by the Ansible Community, see here.
Hint
If you notice any issues in this documentation you can edit this document to improve it.
© 2012–2018 Michael DeHaan
© 2018 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.7/modules/ce_info_center_debug_module.html