From 26977cc52354f2df36b3466b8910ef524ba5efd3 Mon Sep 17 00:00:00 2001 From: David Stephens Date: Sat, 14 Dec 2019 22:36:51 +0000 Subject: [PATCH] add nofile ulimits to time machine docker container --- tasks/timemachine.yml | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/tasks/timemachine.yml b/tasks/timemachine.yml index 6e018bdf..1cdc550a 100644 --- a/tasks/timemachine.yml +++ b/tasks/timemachine.yml @@ -6,34 +6,36 @@ - name: Time Machine Docker Container docker_container: - name: timemachine - image: awlnx/samba-timemachine:latest - pull: true - ports: - - "{{ timemachine_port }}:445" - env: - TMSIZE: "{{ timemachine_volume_size_limit }}" - PASS: "{{ timemachine_password }}" - SHARENAME: "{{ timemachine_share_name }}" - volumes: - - "{{ timemachine_data_directory }}/data:/backups" - network_mode: bridge - restart_policy: unless-stopped - memory: 1g + name: timemachine + image: awlnx/samba-timemachine:latest + pull: true + ports: + - "{{ timemachine_port }}:445" + env: + TMSIZE: "{{ timemachine_volume_size_limit }}" + PASS: "{{ timemachine_password }}" + SHARENAME: "{{ timemachine_share_name }}" + volumes: + - "{{ timemachine_data_directory }}/data:/backups" + ulimits: + - "nofile:1048576:1048576" + network_mode: bridge + restart_policy: unless-stopped + memory: 1g - name: Install avahi apt: - name: "avahi-daemon" - state: present + name: "avahi-daemon" + state: present register: result until: result is succeeded - name: Setup timemachine service for avahi template: - src: timemachine/timemachine.service - dest: "/etc/avahi/services/timemachine.service" + src: timemachine/timemachine.service + dest: "/etc/avahi/services/timemachine.service" - name: Reload avahi configuration service: - name: avahi-daemon - state: reloaded + name: avahi-daemon + state: reloaded