|
|
@ -37,11 +37,11 @@ notes:
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
banner:
|
|
|
|
banner:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Specifies which banner that should be
|
|
|
|
- Specifies which banner should be configured on the remote device.
|
|
|
|
configured on the remote device.
|
|
|
|
In Ansible 2.4 and earlier only I(login) and I(motd) were supported.
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
default: null
|
|
|
|
default: null
|
|
|
|
choices: ['login', 'motd']
|
|
|
|
choices: ['login', 'motd', 'exec', 'incoming', 'slip-ppp']
|
|
|
|
text:
|
|
|
|
text:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The banner text that should be
|
|
|
|
- The banner text that should be
|
|
|
@ -151,7 +151,7 @@ def main():
|
|
|
|
""" main entry point for module execution
|
|
|
|
""" main entry point for module execution
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
argument_spec = dict(
|
|
|
|
argument_spec = dict(
|
|
|
|
banner=dict(required=True, choices=['login', 'motd']),
|
|
|
|
banner=dict(required=True, choices=['login', 'motd', 'exec', 'incoming', 'slip-ppp']),
|
|
|
|
text=dict(),
|
|
|
|
text=dict(),
|
|
|
|
state=dict(default='present', choices=['present', 'absent'])
|
|
|
|
state=dict(default='present', choices=['present', 'absent'])
|
|
|
|
)
|
|
|
|
)
|
|
|
|