Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ansible / community / mongodb / roles / mongodb_linux
  ..
  defaults
  files
  meta
  molecule
  tasks
  vars
  README.md
Size: Mime:

mongodb_linux

A simple role to configure Linux Operating System settings, for Debian and RedHat systems, as advised in the MongoDB Production Notes.

A brief description of what we do in this role:

  • Set swappiness.
  • Ensure NTP (or equivalent) service is installed and running.
  • Ensure GNU C Library is the latest available.
  • Disable NUMA reclaim zone.
  • Add script to disable transparent-huge-pages and setup as a service.
  • Set pam limits.
  • Set various sysctl values.

Role Variables

swappiness: OS swappiness value. Default "1". ntp_package: Name of ntp package. Default ntp. ntp_service: Name of ntp service. Default ntpd.

  • On RedHat 8 and higher systems ntp_package and ntp_service are set to chrony and chronyd respectively.

Example Playbook

    - hosts: servers
      roles:
         - mongodb_linux

License

BSD

Author Information

Rhys Campbell (https://github.com/rhysmeister)