sysctl

Ansible Role: sysctl

This role configures sysctl (kernel) parameters on your Linux distribution.

Requirements

This role was developed and tested with the following Ansible versions:

Name Version
ansible >= 2.9.9

Other Ansible versions were not tested, but will probably work.

Installation

Use ansible-galaxy install igor_nikiforov.sysctl to install the latest stable release of role.

You could also install it from requirements ansible-galaxy install -r requirements.yml:

# requirements.yml
---
roles:
  - name: igor_nikiforov.sysctl
    version: v1.0.0

Usage

Role supports all sysctl configuration parameters. Please use sysctl -a to print all possible parameters.

Examples

# playbook.yml
---
- hosts: all
  become: true
  gather_facts: false

  pre_tasks:
    - wait_for_connection: { timeout: 300 }
    - setup:

  vars:
    sysctl_settings:
      - name: net.ipv4.ip_forward
        value: 1

  tasks:
    - name: Configure sysctl parameters
      import_role:
        name: sysctl

License

MIT

Author Information

Igor Nikiforov

About

Configure sysctl paramaters under any Linux distributions.

Install
ansible-galaxy install igor-nikiforov/ansible-role-sysctl
GitHub repository
License
Unknown
Downloads
1051523