Minor fixes and enhancements to bigip modules (#44549)

Various cleanup and fixes in docs and iterations.
pull/44587/head
Tim Rupp 6 years ago committed by GitHub
parent 59e25bbe5b
commit 5a020e7170
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -341,6 +341,7 @@ class ArgumentSpec(object):
def main():
client = None
spec = ArgumentSpec()
module = AnsibleModule(
@ -357,6 +358,7 @@ def main():
cleanup_tokens(client)
module.exit_json(**results)
except F5ModuleError as ex:
if client:
cleanup_tokens(client)
module.fail_json(msg=str(ex))

@ -17,7 +17,7 @@ DOCUMENTATION = r'''
module: bigip_profile_udp
short_description: Manage UDP profiles on a BIG-IP
description:
- Manage UDP profiles on a BIG-IP. There are a variety of UDP profiles, each with their
- Manage UDP profiles on a BIG-IP. Many of UDP profiles exist; each with their
own adjustments to the standard C(udp) profile. Users of this module should be aware
that many of the adjustable knobs have no module default. Instead, the default is
assigned by the BIG-IP system itself which, in most cases, is acceptable.

@ -342,7 +342,7 @@ class ModuleManager(object):
# Sleep a little to let rebooting take effect
time.sleep(20)
while nops < 6:
while nops < 3:
try:
self.client.reconnect()
next_reboot = self._get_last_reboot()

@ -78,7 +78,7 @@ author:
EXAMPLES = r'''
- name: Disable the setup utility
bigip_sys_global:
gui_setup: disabled
gui_setup: no
password: secret
server: lb.mydomain.com
user: admin
@ -93,8 +93,8 @@ banner_text:
type: string
sample: This is a corporate device. Do not touch.
console_timeout:
description: >
The new number of seconds of inactivity before the system
description:
- The new number of seconds of inactivity before the system
logs off a user that is logged on.
returned: changed
type: int
@ -103,36 +103,36 @@ gui_setup:
description: The new setting for the Setup utility.
returned: changed
type: string
sample: enabled
sample: yes
lcd_display:
description: The new setting for displaying the system menu on the LCD.
returned: changed
type: string
sample: enabled
sample: yes
mgmt_dhcp:
description: The new setting for whether the mgmt interface should DHCP or not.
returned: changed
type: string
sample: enabled
sample: yes
net_reboot:
description: The new setting for whether the system should boot to an ISO on the network or not.
returned: changed
type: string
sample: enabled
sample: yes
quiet_boot:
description: >
The new setting for whether the system should suppress information to
description:
- The new setting for whether the system should suppress information to
the console during boot or not.
returned: changed
type: string
sample: enabled
sample: yes
security_banner:
description: >
The new setting for whether the system should display an advisory message
description:
- The new setting for whether the system should display an advisory message
on the login screen or not.
returned: changed
type: string
sample: enabled
sample: yes
'''
from ansible.module_utils.basic import AnsibleModule

Loading…
Cancel
Save