From 37cab28696b636a4a0460f2d2934f0f6afc84b6d Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 22 May 2023 20:09:26 +0200 Subject: [PATCH] Remove the constraint on the worker node --- tasks/main.yml | 6 ------ templates/epas-docker-compose.yml.j2 | 1 - 2 files changed, 7 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index e2b0371..e902b13 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -14,12 +14,6 @@ - name: Manage the installation of the ePAS configuration of the swarm service block: - - name: Add the label that will be used as a constraint for the attachments volume - docker_node: - hostname: '{{ epas_docker_attachments_node }}' - labels: - epas_storage: 'attachments' - labels_state: 'merge' - name: Add the label that will be used as a constraint for the postgresql DB docker_node: diff --git a/templates/epas-docker-compose.yml.j2 b/templates/epas-docker-compose.yml.j2 index 7c2e7d9..fdd5912 100644 --- a/templates/epas-docker-compose.yml.j2 +++ b/templates/epas-docker-compose.yml.j2 @@ -94,7 +94,6 @@ services: placement: constraints: - node.role == worker - - {{ epas_node_constraints }} restart_policy: condition: on-failure delay: 5s