Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for --system Option in Sysctl Module #544

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

MubashirUsman
Copy link

SUMMARY

Sysctl module does not currently support the --system option, which loads the configuration files from directories in the following order.
/etc/sysctl.d/*.conf
/run/sysctl.d/*.conf
/usr/local/lib/sysctl.d/*.conf
/usr/lib/sysctl.d/*.conf
/lib/sysctl.d/*.conf
/etc/sysctl.conf

I defined SYSCTL_DIRS, list of directories to iterate over if system_wide parameter is set to true. It acts same as sysctl -p <config-file>, and goes over all the paths defined in SYSCTL_DIRS.
Fixes #512

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

ansible.posix.sysctl

ADDITIONAL INFORMATION

Copy link
Contributor

@MaKaNu
Copy link

MaKaNu commented Sep 16, 2024

What is the status of this PR?

I am also at that point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sysctl --system
2 participants