Set TasksMax to infinity on any OS with systemd

This commit is contained in:
Chris Mildebrandt
2018-02-20 11:55:13 -08:00
parent 2de6da25a8
commit c19d8994b9
2 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ ExecStart={{ docker_bin_dir }}/docker{% if installed_docker_version.stdout|versi
$DOCKER_NETWORK_OPTIONS \
$DOCKER_DNS_OPTIONS \
$INSECURE_REGISTRY
{% if ansible_os_family == "RedHat" and systemd_version.stdout|int >= 226 %}
{% if systemd_version.stdout|int >= 226 %}
TasksMax=infinity
{% endif %}
LimitNOFILE=1048576