Skip to content

Ansible role to manage (security)limits in Debian-like systems

License

Notifications You must be signed in to change notification settings

sportsru/ansible-limits

 
 

Repository files navigation

limits

Build Status Ansible Galaxy

Manage (security)limits in Debian-like systems.

Requirements

None

Variables

  • limits_pam_files [default: ['/etc/pam.d/common-session', '/etc/pam.d/common-session-noninteractive']]: Pam files to enable limits for

  • limits_conf_d_files [default: {}]: Limits configuration file declarations

  • limits_conf_d_files.key: The name of the limits configuration file (e.g 000-percona-server.conf)

  • limits_conf_d_files.key.domain: The domain (e.g mysql)

  • limits_conf_d_files.key.type: The type (e.g. soft)

  • limits_conf_d_files.key.item: The item (e.g. nofile)

  • limits_conf_d_files.key.value: The value (e.g. 65535)

Dependencies

None

Example(s)

Simple configuration
---
- hosts: all
  roles:
    - limits
Percona Server (open_files_limit)
---
- hosts: all
  roles:
    - limits
  vars:
    limits_conf_d_files:
      000-percona-server.conf:
        - domain: mysql
          type: soft
          item: nofile
          value: 65535
        - domain: mysql
          type: hard
          item: nofile
          value: 65535

License

MIT

Author Information

Mischa ter Smitten (based on work of Julien Dauphant)

Feedback, bug-reports, requests, ...

Are welcome!

About

Ansible role to manage (security)limits in Debian-like systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jinja 100.0%