mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 07:51:50 +00:00
Reformat everything.
This commit is contained in:
parent
3f2213791a
commit
340ff8586d
1008 changed files with 61301 additions and 58309 deletions
|
|
@ -190,25 +190,37 @@ from ansible.module_utils.common.text.converters import to_native
|
|||
|
||||
def main():
|
||||
endpoint = "reverse_proxy/location"
|
||||
key_to_check_for_changes = ["access_control", "allowed_networks", "auth_profile", "backend", "be_path", "comment",
|
||||
"denied_networks", "hot_standby", "path", "status", "stickysession_id",
|
||||
"stickysession_status", "websocket_passthrough"]
|
||||
key_to_check_for_changes = [
|
||||
"access_control",
|
||||
"allowed_networks",
|
||||
"auth_profile",
|
||||
"backend",
|
||||
"be_path",
|
||||
"comment",
|
||||
"denied_networks",
|
||||
"hot_standby",
|
||||
"path",
|
||||
"status",
|
||||
"stickysession_id",
|
||||
"stickysession_status",
|
||||
"websocket_passthrough",
|
||||
]
|
||||
module = UTMModule(
|
||||
argument_spec=dict(
|
||||
name=dict(type='str', required=True),
|
||||
access_control=dict(type='str', default="0", choices=['0', '1']),
|
||||
allowed_networks=dict(type='list', elements='str', default=['REF_NetworkAny']),
|
||||
auth_profile=dict(type='str', default=""),
|
||||
backend=dict(type='list', elements='str', default=[]),
|
||||
be_path=dict(type='str', default=""),
|
||||
comment=dict(type='str', default=""),
|
||||
denied_networks=dict(type='list', elements='str', default=[]),
|
||||
hot_standby=dict(type='bool', default=False),
|
||||
path=dict(type='str', default="/"),
|
||||
status=dict(type='bool', default=True),
|
||||
stickysession_id=dict(type='str', default='ROUTEID'),
|
||||
stickysession_status=dict(type='bool', default=False),
|
||||
websocket_passthrough=dict(type='bool', default=False),
|
||||
name=dict(type="str", required=True),
|
||||
access_control=dict(type="str", default="0", choices=["0", "1"]),
|
||||
allowed_networks=dict(type="list", elements="str", default=["REF_NetworkAny"]),
|
||||
auth_profile=dict(type="str", default=""),
|
||||
backend=dict(type="list", elements="str", default=[]),
|
||||
be_path=dict(type="str", default=""),
|
||||
comment=dict(type="str", default=""),
|
||||
denied_networks=dict(type="list", elements="str", default=[]),
|
||||
hot_standby=dict(type="bool", default=False),
|
||||
path=dict(type="str", default="/"),
|
||||
status=dict(type="bool", default=True),
|
||||
stickysession_id=dict(type="str", default="ROUTEID"),
|
||||
stickysession_status=dict(type="bool", default=False),
|
||||
websocket_passthrough=dict(type="bool", default=False),
|
||||
)
|
||||
)
|
||||
try:
|
||||
|
|
@ -217,5 +229,5 @@ def main():
|
|||
module.fail_json(msg=to_native(e))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue