mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
fd2e0ddcac
commit
48704d45fd
10 changed files with 21 additions and 20 deletions
|
@ -35,15 +35,16 @@ options:
|
||||||
versions of BIG-IP. The opposite, however, is true; you can import older into
|
versions of BIG-IP. The opposite, however, is true; you can import older into
|
||||||
newer.
|
newer.
|
||||||
- The file format can be binary of XML.
|
- The file format can be binary of XML.
|
||||||
|
type: path
|
||||||
force:
|
force:
|
||||||
description:
|
description:
|
||||||
- When set to C(yes) any existing policy with the same name will be overwritten by the new import.
|
- When set to C(yes) any existing policy with the same name will be overwritten by the new import.
|
||||||
- Works in both inline and file imports, if policy does not exist this setting is ignored.
|
- Works for both inline and file imports, if the policy does not exist this setting is ignored.
|
||||||
default: no
|
default: no
|
||||||
type: bool
|
type: bool
|
||||||
partition:
|
partition:
|
||||||
description:
|
description:
|
||||||
- Device partition to manage resources on.
|
- Device partition to create policy on.
|
||||||
default: Common
|
default: Common
|
||||||
extends_documentation_fragment: f5
|
extends_documentation_fragment: f5
|
||||||
author:
|
author:
|
||||||
|
@ -84,8 +85,8 @@ EXAMPLES = r'''
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = r'''
|
RETURN = r'''
|
||||||
file:
|
source:
|
||||||
description: Local path to ASM policy file.
|
description: Local path to an ASM policy file.
|
||||||
returned: changed
|
returned: changed
|
||||||
type: str
|
type: str
|
||||||
sample: /root/some_policy.xml
|
sample: /root/some_policy.xml
|
||||||
|
@ -365,7 +366,7 @@ class ModuleManager(object):
|
||||||
|
|
||||||
if response['status'] == 'FAILURE':
|
if response['status'] == 'FAILURE':
|
||||||
raise F5ModuleError(
|
raise F5ModuleError(
|
||||||
'Failed to export ASM policy.'
|
'Failed to import ASM policy.'
|
||||||
)
|
)
|
||||||
if response['status'] == 'COMPLETED':
|
if response['status'] == 'COMPLETED':
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue