.. _cisco.ios.ios_service_module:
*********************
cisco.ios.ios_service
*********************
**Resource module to configure service.**
Version added: 4.6.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module configures and manages service attributes on IOS platforms
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
dictionary
|
|
A dictionary of service configuration
|
|
call_home
boolean
|
|
Cisco call-home service
|
|
compress_config
boolean
|
|
Compress the nvram configuration file
|
|
config
boolean
|
|
TFTP load config files
|
|
counters
integer
|
Default:
0
|
Control aging of interface counters by setting the maximum counter aging threshold
|
|
dhcp
boolean
|
|
Enable DHCP server and relay agent
|
|
disable_ip_fast_frag
boolean
|
|
Disable IP particle-based fast fragmentation
|
|
exec_callback
boolean
|
|
Enable exec callback
|
|
exec_wait
boolean
|
|
Delay EXEC startup on noisy lines
|
|
hide_telnet_addresses
boolean
|
|
Hide destination addresses in telnet command
|
|
internal
boolean
|
|
Enable/Disable Internal commands
|
|
linenumber
boolean
|
|
enable line number banner for each exec
|
|
log
boolean
|
|
log backtrace
|
|
log_hidden
boolean
|
|
Enable syslog msgs for hidden/internal commands
|
|
nagle
boolean
|
|
Enable Nagle's congestion control algorithm
|
|
old_slip_prompts
boolean
|
|
Allow old scripts to operate with slip/ppp
|
|
pad
boolean
|
|
Enable PAD commands
|
|
pad_cmns
boolean
|
|
Enable PAD over CMNS connections
|
|
pad_from_xot
boolean
|
|
Accept XOT to PAD connections
|
|
pad_to_xot
boolean
|
|
Allow outgoing PAD over XOT connections
|
|
password_encryption
boolean
|
|
Encrypt system passwords
|
|
password_recovery
boolean
|
|
Password recovery
|
|
private_config_encryption
boolean
|
|
Enable private config file encryption
|
|
prompt
boolean
|
|
Enable mode specific prompt
|
|
pt_vty_logging
boolean
|
|
Log significant VTY-Async events
|
|
scripting
boolean
|
|
scripting
|
|
sequence_numbers
boolean
|
|
Stamp logger messages with a sequence number
|
|
slave_coredump
boolean
|
|
slave-coredump
|
|
slave_log
boolean
|
|
Enable log capability of slave IPs
|
|
tcp_keepalives_in
boolean
|
|
Generate keepalives on idle incoming network connections
|
|
tcp_keepalives_out
boolean
|
|
Generate keepalives on idle outgoing network connections
|
|
tcp_small_servers
dictionary
|
|
TCP small servers are servers (daemons, in Unix parlance) that run in the router which are useful for diagnostics.
|
|
|
enable
boolean
|
|
Enable small TCP servers (e.g., ECHO)
|
|
|
max_servers
integer
|
|
Set number of allowable TCP small servers
1 to 2147483647
|
|
|
no_limit
boolean
|
|
No limit on number of allowable TCP small servers
|
|
telnet_zeroidle
boolean
|
|
Set TCP window 0 when connection is idle
|
|
timestamps
list
/ elements=dictionary
|
|
Timestamp debug/log messages
|
|
|
datetime_options
dictionary
|
|
Options for date and time timestamp
|
|
|
|
localtime
boolean
|
|
Use local time zone for timestamps
|
|
|
|
msec
boolean
|
|
Include milliseconds in timestamp
|
|
|
|
show_timezone
boolean
|
|
Add time zone information to timestamp
|
|
|
|
year
boolean
|
|
Include year in timestam
|
|
|
enable
boolean
|
|
Enable timestamp for the choosen message
|
|
|
msg
string
|
|
Timestamp log or debug messages
|
|
|
timestamp
string
|
|
Timestamp with date and time or with system uptime
|
|
udp_small_servers
dictionary
|
|
UDP small servers are servers (daemons, in Unix parlance) that run in the router which are useful for diagnostics.
|
|
|
enable
boolean
|
|
Enable small UDP servers (e.g., ECHO)
|
|
|
max_servers
integer
|
|
Set number of allowable UDP small servers
1 to 2147483647
|
|
|
no_limit
boolean
|
|
No limit on number of allowable UDP small servers
|
|
unsupported_transceiver
boolean
|
|
enable support for third-party transceivers
|
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the IOS device by executing the command show running-config | section ^service|^no service.
The state parsed reads the configuration from running_config option and transforms it into Ansible structured data as per the resource module's argspec and the value is then returned in the parsed key within the result.
|
|
state
string
|
Choices:
merged ←
- replaced
- overridden
- deleted
- gathered
- rendered
- parsed
|
The state the configuration should be left in.
The module have declaratively similar behavior for replaced and overridden state.
Refer to examples for more details.
|