mellanox / mellanox.onyx / 1.0.0 / module / onyx_syslog_files Configure file management syslog module | "added in version" 0.2.0 of mellanox.onyx" Authors: Anas Shami (@anass)mellanox.onyx.onyx_syslog_files (1.0.0) — module
Install with ansible-galaxy collection install mellanox.onyx:==1.0.0
collections: - name: mellanox.onyx version: 1.0.0
This module provides declarative management of syslog on Mellanox ONYX network devices.
- name: Syslog delete old files
- onyx_syslog_files: delete_group: oldest
- name: Syslog upload file
- onyx_syslog_files: upload_url: scp://username:password@hostnamepath/filename upload_file: current
- name: Syslog rotation force, frequency and max number
- onyx_syslog_files: rotation: force: true max_num: 30 frequency: daily size: 128
debug: default: false description: - Configure settings for debug log files type: bool rotation: description: - rotation related attributes suboptions: force: description: - force an immediate rotation of log files type: bool frequency: choices: - daily - weekly - monthly description: - Rotate log files on a fixed time-based schedule type: str max_num: description: - Sepcify max_num of old log files to keep type: int size: description: - Rotate files when they pass max size type: float size_pct: description: - Rotatoe files when they pass percent of HD type: float type: dict upload_url: description: - upload local log files to remote host (ftp, scp, sftp, tftp) with format protocol://username[:password]@server/path type: str upload_file: description: - Upload compressed log file (current or filename) type: str delete_group: choices: - current - oldest description: - Delete certain log files type: str
commands: description: The list of configuration mode commands to send to the device. returned: always sample: - logging files delete current - logging files rotate criteria - logging files upload current url type: list