/ansible-sysctl

Configure kernel parameters using sysctl with sysctl.conf snippets managed by systemd-sysctl.

Primary LanguageYAMLMIT LicenseMIT

Catena Ansible Role: sysctl

Configure kernel parameters at runtime with sysctl using sysctl.conf preload/configuration files containing sysctl values, managed by systemd-sysctl.

Role variables

catena_sysctl

Manage sysctl configuration files. They will be placed in /etc/sysctl.d directory.

# Default
catena_sysctl: []

# Example
catena_sysctl:
  # /etc/sysctl.d/10-arch.conf
  - name: 10-arch
    options:
      # Raise inotify resource limits
      fs.inotify.max_user_instances: 1024
      fs.inotify.max_user_watches: 524288

catena_sysctl_cleanup

Remove all existing configuration files before creating the new ones.

# Default
catena_sysctl_cleanup: false