def main(): """ Main entry point for module execution :returns: the result form module invocation """ module = AnsibleModule(argument_spec=LacpArgs.argument_spec, supports_check_mode=True) result = Lacp(module).execute_module() module.exit_json(**result)
def main(): """ Main entry point for module execution :returns: the result form module invocation """ required_if = [ ("state", "merged", ("config", )), ("state", "replaced", ("config", )), ("state", "rendered", ("config", )), ("state", "parsed", ("running_config", )), ] mutually_exclusive = [("config", "running_config")] module = AnsibleModule( argument_spec=LacpArgs.argument_spec, required_if=required_if, mutually_exclusive=mutually_exclusive, supports_check_mode=True, ) result = Lacp(module).execute_module() module.exit_json(**result)