def main(): """ Main entry point for module execution :returns: the result form module invocation """ module = AnsibleModule(argument_spec=Lag_interfacesArgs.argument_spec, supports_check_mode=True) result = Lag_interfaces(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", "overridden", ("config", )), ("state", "rendered", ("config", )), ("state", "parsed", ("running_config", )), ] mutually_exclusive = [("config", "running_config")] module = AnsibleModule( argument_spec=Lag_interfacesArgs.argument_spec, required_if=required_if, mutually_exclusive=mutually_exclusive, supports_check_mode=True, ) result = Lag_interfaces(module).execute_module() module.exit_json(**result)