|
@@ -10,6 +10,16 @@
|
|
|
path: /etc/systemd/system/haproxy.service.d
|
|
|
state: directory
|
|
|
|
|
|
+# Work around ini_file create option in 2.2 which defaults to no
|
|
|
+- name: Create limits.conf file
|
|
|
+ file:
|
|
|
+ dest: /etc/systemd/system/haproxy.service.d/limits.conf
|
|
|
+ state: touch
|
|
|
+ mode: 0660
|
|
|
+ owner: root
|
|
|
+ group: root
|
|
|
+ changed_when: false
|
|
|
+
|
|
|
- name: Configure the nofile limits for haproxy
|
|
|
ini_file:
|
|
|
dest: /etc/systemd/system/haproxy.service.d/limits.conf
|