-
Notifications
You must be signed in to change notification settings - Fork 741
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
Fix error on applying the sysctl vars on containers #243
Conversation
No need apply sysctl in docker and openvz containers. Signed-off-by: Oleg Kupriyanov <[email protected]>
Sysctl changes Signed-off-by: Oleg Kupriyanov <[email protected]>
Strange that it fails in travis on Debian 10.. Locally it does not fail for me. :/ |
@rndmh3ro How can I try to rebuild failed travis test? |
@okupriyanov, by commiting again. :) |
There is the same bug with LXC containers, you may add the bugfix withing this pull request. ;) |
@Wilkes77Ace, you're right! @okupriyanov, would you mind adding lxc while I figure out why the tests fail?
|
… github.com:okupriyanov/ansible-os-hardening into fix-error-on-applying-the-sysctl-vars-on-containers
@rndmh3ro Done. |
Totally forgot to merge this, sorry! |
Hi , |
@mibaboo, sysctl changes kernel parameters. Since container share the kernel of the host you'd effectively modifying the host. That's why sysctl tasks do not run in a container. |
@rndmh3ro makes sense thank you |
* Add exception in sysctl task No need apply sysctl in docker and openvz containers. Signed-off-by: Oleg Kupriyanov <[email protected]> * use block for sysctl tasks
Rework #240