igor_nikiforov.sysctl
Ansible Role: sysctl
This role sets up sysctl (kernel) settings on your Linux system.
Requirements
This role has been made and tested with the following Ansible versions:
Name | Version |
---|---|
ansible | >= 2.9.9 |
Other versions of Ansible may also work, but they haven't been tested.
Installation
To install the latest stable version of the role, use:
ansible-galaxy install igor_nikiforov.sysctl
You can also install it from the requirements file using:
ansible-galaxy install -r requirements.yml
Here's an example of the requirements.yml
file:
# requirements.yml
---
roles:
- name: igor_nikiforov.sysctl
version: v1.0.0
Usage
This role allows you to configure all sysctl parameters. Use the command
sysctl -a
to see all available parameters.
Examples
Here's an example of how to use this role in a playbook:
# 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
Informazioni sul progetto
Configure sysctl paramaters under any Linux distributions.
Installa
ansible-galaxy install igor_nikiforov.sysctl
Licenza
Unknown
Download
1.1M
Proprietario