Parameter |
Choices/Defaults |
Comments |
aggregate
|
|
List of syslog logging configuration definitions.
|
dest
|
Choices:
- host
- console
- monitor
- buffered
- file
|
Destination for system logging (syslog) messages.
|
facility
|
Default:
"local7"
|
To configure the type of syslog facility in which system logging (syslog) messages are sent to syslog servers Optional config for dest = host
|
hostnameprefix
(added in 2.5) |
|
To append a hostname prefix to system logging (syslog) messages logged to syslog servers. Optional config for dest = host
|
level
|
Default:
"debugging"
|
Specifies the severity level for the logging.
aliases: severity
|
name
|
|
When dest = file name indicates file-name
When dest = host name indicates the host-name or ip-address of syslog server.
|
provider
|
|
Deprecated
Starting with Ansible 2.5 we recommend using connection: network_cli .
A dict object containing connection details.
|
|
username
|
|
Configures the username to use to authenticate the connection to the remote device. This value is used to authenticate the SSH session. If the value is not specified in the task, the value of environment variable ANSIBLE_NET_USERNAME will be used instead.
|
|
host
required |
|
Specifies the DNS host name or address for connecting to the remote device over the specified transport. The value of host is used as the destination address for the transport.
|
|
ssh_keyfile
|
|
Specifies the SSH key to use to authenticate the connection to the remote device. This value is the path to the key used to authenticate the SSH session. If the value is not specified in the task, the value of environment variable ANSIBLE_NET_SSH_KEYFILE will be used instead.
|
|
timeout
|
Default:
10
|
Specifies the timeout in seconds for communicating with the network device for either connecting or sending commands. If the timeout is exceeded before the operation is completed, the module will error.
|
|
password
|
|
Specifies the password to use to authenticate the connection to the remote device. This value is used to authenticate the SSH session. If the value is not specified in the task, the value of environment variable ANSIBLE_NET_PASSWORD will be used instead.
|
|
port
|
Default:
22
|
Specifies the port to use when building the connection to the remote device.
|
size
|
|
Size of buffer when dest = buffered . The acceptable value is in the range 307200 to 125000000 bytes. Default 307200
Size of file when dest = file . The acceptable value is in the range 1 to 2097152KB. Default 2 GB
|
state
|
Choices:
present ←
- absent
|
Existential state of the logging configuration on the node.
|
vrf
(added in 2.5) |
Default:
"default"
|
vrf name when syslog server is configured, dest = host
|