|
|
@ -4,14 +4,18 @@
|
|
|
|
# Copyright (c) 2017 F5 Networks Inc.
|
|
|
|
# Copyright (c) 2017 F5 Networks Inc.
|
|
|
|
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from __future__ import absolute_import, division, print_function
|
|
|
|
|
|
|
|
__metaclass__ = type
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|
|
|
ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|
|
|
'status': ['preview'],
|
|
|
|
'status': ['preview'],
|
|
|
|
'supported_by': 'community'}
|
|
|
|
'supported_by': 'community'}
|
|
|
|
|
|
|
|
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
DOCUMENTATION = r'''
|
|
|
|
---
|
|
|
|
---
|
|
|
|
module: bigip_qkview
|
|
|
|
module: bigip_qkview
|
|
|
|
short_description: Manage qkviews on the device.
|
|
|
|
short_description: Manage qkviews on the device
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Manages creating and downloading qkviews from a BIG-IP. Various
|
|
|
|
- Manages creating and downloading qkviews from a BIG-IP. Various
|
|
|
|
options can be provided when creating qkviews. The qkview is important
|
|
|
|
options can be provided when creating qkviews. The qkview is important
|
|
|
@ -82,18 +86,18 @@ author:
|
|
|
|
- Tim Rupp (@caphrim007)
|
|
|
|
- Tim Rupp (@caphrim007)
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES = '''
|
|
|
|
EXAMPLES = r'''
|
|
|
|
- name: Fetch a qkview from the remote device
|
|
|
|
- name: Fetch a qkview from the remote device
|
|
|
|
bigip_qkview:
|
|
|
|
bigip_qkview:
|
|
|
|
asm_request_log: "yes"
|
|
|
|
asm_request_log: yes
|
|
|
|
exclude:
|
|
|
|
exclude:
|
|
|
|
- audit
|
|
|
|
- audit
|
|
|
|
- secure
|
|
|
|
- secure
|
|
|
|
dest: "/tmp/localhost.localdomain.qkview"
|
|
|
|
dest: /tmp/localhost.localdomain.qkview
|
|
|
|
delegate_to: localhost
|
|
|
|
delegate_to: localhost
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
RETURN = '''
|
|
|
|
RETURN = r'''
|
|
|
|
stdout:
|
|
|
|
stdout:
|
|
|
|
description: The set of responses from the commands
|
|
|
|
description: The set of responses from the commands
|
|
|
|
returned: always
|
|
|
|
returned: always
|
|
|
@ -109,16 +113,17 @@ stdout_lines:
|
|
|
|
import re
|
|
|
|
import re
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from ansible.module_utils.six import string_types
|
|
|
|
|
|
|
|
from ansible.module_utils.f5_utils import AnsibleF5Client
|
|
|
|
|
|
|
|
from ansible.module_utils.f5_utils import AnsibleF5Parameters
|
|
|
|
|
|
|
|
from ansible.module_utils.f5_utils import HAS_F5SDK
|
|
|
|
|
|
|
|
from ansible.module_utils.f5_utils import F5ModuleError
|
|
|
|
from distutils.version import LooseVersion
|
|
|
|
from distutils.version import LooseVersion
|
|
|
|
|
|
|
|
|
|
|
|
from ansible.module_utils.six import string_types
|
|
|
|
try:
|
|
|
|
from ansible.module_utils.f5_utils import (
|
|
|
|
from ansible.module_utils.f5_utils import iControlUnexpectedHTTPError
|
|
|
|
AnsibleF5Client,
|
|
|
|
except ImportError:
|
|
|
|
AnsibleF5Parameters,
|
|
|
|
HAS_F5SDK = False
|
|
|
|
HAS_F5SDK,
|
|
|
|
|
|
|
|
F5ModuleError,
|
|
|
|
|
|
|
|
iControlUnexpectedHTTPError
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Parameters(AnsibleF5Parameters):
|
|
|
|
class Parameters(AnsibleF5Parameters):
|
|
|
@ -397,17 +402,17 @@ class ArgumentSpec(object):
|
|
|
|
),
|
|
|
|
),
|
|
|
|
asm_request_log=dict(
|
|
|
|
asm_request_log=dict(
|
|
|
|
type='bool',
|
|
|
|
type='bool',
|
|
|
|
default=False,
|
|
|
|
default='no',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
max_file_size=dict(
|
|
|
|
max_file_size=dict(
|
|
|
|
type='int',
|
|
|
|
type='int',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
complete_information=dict(
|
|
|
|
complete_information=dict(
|
|
|
|
default=False,
|
|
|
|
default='no',
|
|
|
|
type='bool'
|
|
|
|
type='bool'
|
|
|
|
),
|
|
|
|
),
|
|
|
|
exclude_core=dict(
|
|
|
|
exclude_core=dict(
|
|
|
|
default=False,
|
|
|
|
default="no",
|
|
|
|
type='bool'
|
|
|
|
type='bool'
|
|
|
|
),
|
|
|
|
),
|
|
|
|
force=dict(
|
|
|
|
force=dict(
|
|
|
|