Browse Source

add option `onion_service_disable_healthcheck`

Fabian Peter Hammerle 1 week ago
parent
commit
94a04de35b
3 changed files with 3 additions and 0 deletions
  1. 1 0
      README.md
  2. 1 0
      defaults/main.yml
  3. 1 0
      tasks/main.yml

+ 1 - 0
README.md

@@ -15,6 +15,7 @@ onion_service_network_name: webserver
 ```yaml
 onion_service_container_image: docker.io/fphammerle/onion-service@sha256:9cfc001d0c641fa8e58b67fccb766459dc16ee05e55ce756ee278ce3d5c46224
 onion_service_container_state: started
+onion_service_disable_healthcheck: yes
 ```
 
 ## Returned Variables

+ 1 - 0
defaults/main.yml

@@ -4,3 +4,4 @@
 onion_service_container_image: docker.io/fphammerle/onion-service@sha256:2aba505fcf9dbdb169ebbe90c10012d07ee389d1739b9aac3a504d58ab2e8a1e
 
 onion_service_container_state: started
+onion_service_disable_healthcheck: no

+ 1 - 0
tasks/main.yml

@@ -29,6 +29,7 @@
     cpu_period: 10000
     memory: 128M
     restart_policy: unless-stopped
+    healthcheck: "{{ {'test': ['NONE']} if onion_service_disable_healthcheck else omit }}"
     state: '{{ onion_service_container_state }}'
   register: _container
 - name: wait for onion service address