community / community.general / 0.1.1 / module / icx_logging Manage logging on Ruckus ICX 7000 series switches Authors: Ruckus Wireless (@Commscope) preview | supported by communitycommunity.general.icx_logging (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
This module provides declarative management of logging on Ruckus ICX 7000 series switches.
- name: Configure host logging. icx_logging: dest: host name: 172.16.0.1 udp_port: 5555
- name: Remove host logging configuration. icx_logging: dest: host name: 172.16.0.1 udp_port: 5555 state: absent
- name: Disables the real-time display of syslog messages. icx_logging: dest: console state: absent
- name: Enables local syslog logging. icx_logging: dest : on state: present
- name: configure buffer level. icx_logging: dest: buffered level: critical
- name: Configure logging using aggregate icx_logging: aggregate: - { dest: buffered, level: ['notifications','errors'] }
- name: remove logging using aggregate icx_logging: aggregate: - { dest: console } - { dest: host, name: 172.16.0.1, udp_port: 5555 } state: absent
dest: choices: - 'on' - host - console - buffered - persistence - rfc5424 description: - Destination of the logs. type: str name: description: - ipv4 address/ipv6 address/name of syslog server. type: str level: choices: - alerts - critical - debugging - emergencies - errors - informational - notifications - warnings description: - Specifies the message level. type: list state: choices: - present - absent default: present description: - State of the logging configuration. type: str facility: choices: - auth - cron - daemon - kern - local0 - local1 - local2 - local3 - local4 - local5 - local6 - local7 - user - lpr - mail - news - syslog - sys9 - sys10 - sys11 - sys12 - sys13 - sys14 - user - uucp description: - Specifies log facility to log messages from the device. type: str udp_port: description: - UDP port of destination host(syslog server). type: str aggregate: description: - List of logging definitions. suboptions: check_running_config: description: - Check running configuration. This can be set as environment variable. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter. type: bool dest: choices: - 'on' - host - console - buffered - persistence - rfc5424 description: - Destination of the logs. type: str facility: choices: - auth - cron - daemon - kern - local0 - local1 - local2 - local3 - local4 - local5 - local6 - local7 - user - lpr - mail - news - syslog - sys9 - sys10 - sys11 - sys12 - sys13 - sys14 - user - uucp description: - Specifies log facility to log messages from the device. type: str level: choices: - alerts - critical - debugging - emergencies - errors - informational - notifications - warnings description: - Specifies the message level. type: list name: description: - ipv4 address/ipv6 address/name of syslog server. type: str state: choices: - present - absent description: - State of the logging configuration. type: str udp_port: description: - UDP port of destination host(syslog server). type: str type: list check_running_config: default: true description: - Check running configuration. This can be set as environment variable. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter. type: bool
commands: description: The list of configuration mode commands to send to the device returned: always sample: - logging host 172.16.0.1 - logging console type: list