From 1c76fb14bb3fecc8b5fc8b34581af087d9c1280c Mon Sep 17 00:00:00 2001 From: Sebastien ROHAUT Date: Fri, 23 Jan 2015 20:07:27 +0100 Subject: [PATCH] Add "-" to ulimit type Just edited pam_types to add the '-', as explained in man 5 limits.conf --- lib/ansible/modules/extras/system/pam_limits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/system/pam_limits.py b/lib/ansible/modules/extras/system/pam_limits.py index 0c492699eba..2167e4f83e3 100644 --- a/lib/ansible/modules/extras/system/pam_limits.py +++ b/lib/ansible/modules/extras/system/pam_limits.py @@ -96,7 +96,7 @@ def main(): pam_items = [ 'core', 'data', 'fsize', 'memlock', 'nofile', 'rss', 'stack', 'cpu', 'nproc', 'as', 'maxlogins', 'maxsyslogins', 'priority', 'locks', 'sigpending', 'msgqueue', 'nice', 'rtprio', 'chroot' ] - pam_types = [ 'soft', 'hard' ] + pam_types = [ 'soft', 'hard', '-' ] limits_conf = '/home/slyce/limits.conf'