sysctl-value-absent
Description
Ensure a sysctl key is absent.
Variables
Name | Type | Default | Description |
---|---|---|---|
|
string | -- | The name of the sysctl variable. Required |
|
n/a | -- | n/a Required |
|
n/a | -- | The value. Required |
Code
doc: short_help: Ensure a sysctl key is absent. args: name: doc: short_help: The name of the sysctl variable. type: string required: true empty: false value: doc: short_help: The value. required: true empty: false reload: doc: short_help: If yes, performs a /sbin/sysctl -p if the sysctl_file is updated. If no, does not reload sysctl even if the sysctl_file is updated. type: boolean default: true frecklets: - frecklet: name: sysctl type: ansible-module desc: short: 'set sysctl key: {{:: name ::}} -> {{:: value ::}}' properties: idempotent: true elevated: true internet: false task: become: true vars: name: '{{:: name ::}}' state: absent sysctl_set: '{{:: set ::}}'
frecklecute sysctl-value-absent --help Usage: frecklecute sysctl-value-absent [OPTIONS] Ensure a sysctl key is absent. Options: --name NAME The name of the sysctl variable. [required] --set SET n/a [required] --value VALUE The value. [required] --help Show this message and exit.
# -*- coding: utf-8 -*- # # module path: pycklets.sysctl_value_absent.SysctlValueAbsent # from dataclasses import dataclass from pyckles import AutoPycklet from typing import * # noqa @dataclass class SysctlValueAbsent(AutoPycklet): """Ensure a sysctl key is absent. Args: name: The name of the sysctl variable. set: n/a value: The value. """ FRECKLET_ID = "sysctl-value-absent" name: str = None set: str = None value: str = None def __post_init__(self): super(SysctlValueAbsent, self).__init__(var_names=["name", "set", "value"]) frecklet_class = SysctlValueAbsent
# -*- coding: utf-8 -*- # # module path: pycklets.sysctl_value_absent.SysctlValueAbsent # from pyckles import AutoPycklet class SysctlValueAbsent(AutoPycklet): """Ensure a sysctl key is absent. Args: name: The name of the sysctl variable. set: n/a value: The value. """ FRECKLET_ID = "sysctl-value-absent" def __init__(self, name=None, set=None, value=None): super(SysctlValueAbsent, self).__init__(var_names=["name", "set", "value"]) self._name = name self._set = set self._value = value @property def name(self): return self._name @name.setter def name(self, name): self._name = name @property def set(self): return self._set @set.setter def set(self, set): self._set = set @property def value(self): return self._value @value.setter def value(self, value): self._value = value frecklet_class = SysctlValueAbsent