ansible / ansible.builtin / v2.8.15 / module / pn_admin_syslog CLI command to create/modify/delete admin-syslog | "added in version" 2.8 of ansible.builtin" Authors: Pluribus Networks (@rajaspachipulusu17) preview | supported by communityansible.builtin.pn_admin_syslog (v2.8.15) — module
pip
Install with pip install ansible==2.8.15
This module can be used to create the scope and other parameters of syslog event collection.
This module can be used to modify parameters of syslog event collection.
This module can be used to delete the scope and other parameters of syslog event collection.
- name: admin-syslog functionality pn_admin_syslog: pn_cliswitch: "sw01" state: "absent" pn_name: "foo" pn_scope: "local"
- name: admin-syslog functionality pn_admin_syslog: pn_cliswitch: "sw01" state: "present" pn_name: "foo" pn_scope: "local" pn_host: "166.68.224.46" pn_message_format: "structured"
- name: admin-syslog functionality pn_admin_syslog: pn_cliswitch: "sw01" state: "update" pn_name: "foo" pn_host: "166.68.224.10"
state: choices: - present - absent - update description: - State the action to perform. Use C(present) to create admin-syslog and C(absent) to delete admin-syslog C(update) to modify the admin-syslog. required: true type: str pn_host: description: - Hostname to log system events. required: false type: str pn_name: description: - name of the system log. required: false type: str pn_port: description: - Host port. required: false type: str pn_scope: choices: - local - fabric description: - Scope of the system log. required: false type: str pn_cliswitch: description: - Target switch to run the CLI on. required: false type: str pn_transport: choices: - tcp-tls - udp default: udp description: - Transport for log events - tcp/tls or udp. required: false type: str pn_message_format: choices: - structured - legacy description: - message-format for log events - structured or legacy. required: false type: str
changed: description: indicates whether the CLI caused changes on the target. returned: always type: bool command: description: the CLI command run on the target node. returned: always type: str stderr: description: set of error responses from the admin-syslog command. returned: on error type: list stdout: description: set of responses from the admin-syslog command. returned: always type: list