Skip to content

cloudpunks/ansible-sysctl

 
 

Repository files navigation

sysctl

Source Code General Workflow Readme Workflow Galaxy Workflow License: Apache-2.0 Ansible Role

Ansible role to configure sysctl settings.

Sponsor

Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.

Table of content


Requirements

  • Minimum Ansible version: 2.10

Default Variables

sysctl_defaults

List of global sysctl settings

Default value

sysctl_defaults: []

Example usage

sysctl_defaults:
  - name: net.ipv4.ip_forward
    value: 1
  - name: net.ipv6.conf.all.forwarding
    value: 1
    ignoreerrors: True
    reload: True
    sysctl_file: /etc/sysctl.conf
    sysctl_set: True
  - name: kernel.panic
    state: absent

sysctl_extra

List of extra sysctl settings

Default value

sysctl_extra: []

Example usage

sysctl_extra:
  - name: net.ipv4.ip_forward
    value: 1
  - name: net.ipv6.conf.all.forwarding
    value: 1
    ignoreerrors: True
    reload: True
    sysctl_file: /etc/sysctl.conf
    sysctl_set: True
  - name: kernel.panic
    state: absent

Discovered Tags

sysctl

Dependencies

License

Apache-2.0

Author

Thomas Boerger

Packages

No packages published

Languages

  • Nix 86.9%
  • Python 13.1%