]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Change copy to template when creating limits.d/ubuntu.conf
authorAndrew Schoen <aschoen@redhat.com>
Thu, 19 Mar 2015 20:20:12 +0000 (15:20 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 24 Mar 2015 00:18:50 +0000 (17:18 -0700)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/common/tasks/main.yml
roles/common/templates/security_limits.conf [new file with mode: 0644]

index 547921f854fe5aa37b07a681e13b747720feb473..9a84077e4cd12544deb1681d7c331d8915c28b77 100644 (file)
@@ -8,12 +8,12 @@
 - include: pip.yml
 
 - name: Set a high max open files limit
-  copy:
+  template:
+    src: security_limits.conf
     dest: /etc/security/limits.d/ubuntu.conf
     owner: root
     group: root
     mode: 0755
-    content: ubuntu hard nofile 16384
 
 # configure ntp
 - include: ntp.yml
diff --git a/roles/common/templates/security_limits.conf b/roles/common/templates/security_limits.conf
new file mode 100644 (file)
index 0000000..2dd4f3e
--- /dev/null
@@ -0,0 +1,2 @@
+# {{ ansible_managed }}
+ubuntu hard nofile 16384