mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-05 03:37:01 +00:00
Reformat everything.
This commit is contained in:
parent
3f2213791a
commit
340ff8586d
1008 changed files with 61301 additions and 58309 deletions
|
|
@ -242,33 +242,49 @@ from ansible.module_utils.common.text.converters import to_native
|
|||
|
||||
def main():
|
||||
endpoint = "reverse_proxy/frontend"
|
||||
key_to_check_for_changes = ["add_content_type_header", "address", "allowed_networks", "certificate",
|
||||
"comment", "disable_compression", "domain", "exceptions", "htmlrewrite",
|
||||
"htmlrewrite_cookies", "implicitredirect", "lbmethod", "locations",
|
||||
"port", "preservehost", "profile", "status", "type", "xheaders"]
|
||||
key_to_check_for_changes = [
|
||||
"add_content_type_header",
|
||||
"address",
|
||||
"allowed_networks",
|
||||
"certificate",
|
||||
"comment",
|
||||
"disable_compression",
|
||||
"domain",
|
||||
"exceptions",
|
||||
"htmlrewrite",
|
||||
"htmlrewrite_cookies",
|
||||
"implicitredirect",
|
||||
"lbmethod",
|
||||
"locations",
|
||||
"port",
|
||||
"preservehost",
|
||||
"profile",
|
||||
"status",
|
||||
"type",
|
||||
"xheaders",
|
||||
]
|
||||
module = UTMModule(
|
||||
argument_spec=dict(
|
||||
name=dict(type='str', required=True),
|
||||
add_content_type_header=dict(type='bool', default=False),
|
||||
address=dict(type='str', default="REF_DefaultInternalAddress"),
|
||||
allowed_networks=dict(type='list', elements='str', default=["REF_NetworkAny"]),
|
||||
certificate=dict(type='str', default=""),
|
||||
comment=dict(type='str', default=""),
|
||||
disable_compression=dict(type='bool', default=False),
|
||||
domain=dict(type='list', elements='str'),
|
||||
exceptions=dict(type='list', elements='str', default=[]),
|
||||
htmlrewrite=dict(type='bool', default=False),
|
||||
htmlrewrite_cookies=dict(type='bool', default=False),
|
||||
implicitredirect=dict(type='bool', default=False),
|
||||
lbmethod=dict(type='str', default="bybusyness",
|
||||
choices=['bybusyness', 'bytraffic', 'byrequests', '']),
|
||||
locations=dict(type='list', elements='str', default=[]),
|
||||
port=dict(type='int', default=80),
|
||||
preservehost=dict(type='bool', default=False),
|
||||
profile=dict(type='str', default=""),
|
||||
status=dict(type='bool', default=True),
|
||||
type=dict(type='str', default="http", choices=['http', 'https']),
|
||||
xheaders=dict(type='bool', default=False),
|
||||
name=dict(type="str", required=True),
|
||||
add_content_type_header=dict(type="bool", default=False),
|
||||
address=dict(type="str", default="REF_DefaultInternalAddress"),
|
||||
allowed_networks=dict(type="list", elements="str", default=["REF_NetworkAny"]),
|
||||
certificate=dict(type="str", default=""),
|
||||
comment=dict(type="str", default=""),
|
||||
disable_compression=dict(type="bool", default=False),
|
||||
domain=dict(type="list", elements="str"),
|
||||
exceptions=dict(type="list", elements="str", default=[]),
|
||||
htmlrewrite=dict(type="bool", default=False),
|
||||
htmlrewrite_cookies=dict(type="bool", default=False),
|
||||
implicitredirect=dict(type="bool", default=False),
|
||||
lbmethod=dict(type="str", default="bybusyness", choices=["bybusyness", "bytraffic", "byrequests", ""]),
|
||||
locations=dict(type="list", elements="str", default=[]),
|
||||
port=dict(type="int", default=80),
|
||||
preservehost=dict(type="bool", default=False),
|
||||
profile=dict(type="str", default=""),
|
||||
status=dict(type="bool", default=True),
|
||||
type=dict(type="str", default="http", choices=["http", "https"]),
|
||||
xheaders=dict(type="bool", default=False),
|
||||
)
|
||||
)
|
||||
try:
|
||||
|
|
@ -277,5 +293,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