From c2d66d96189531cd17a0b30ceca2e6df1bc60690 Mon Sep 17 00:00:00 2001 From: CJ_Clippy Date: Sun, 5 Oct 2025 07:38:01 -0800 Subject: [PATCH] use yaml literal block --- ansible/roles/our/tasks/deploy.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ansible/roles/our/tasks/deploy.yml b/ansible/roles/our/tasks/deploy.yml index a135030..ffef7f8 100644 --- a/ansible/roles/our/tasks/deploy.yml +++ b/ansible/roles/our/tasks/deploy.yml @@ -47,11 +47,12 @@ name: our-green compose: - /etc/futureporn/our/compose.production.yaml - - services: + - | + services: server: ports: - - target: 5000 # container port - published: 8086 # Swarm ingress port + - target: 5000 + published: 8086 protocol: tcp mode: ingress @@ -61,13 +62,15 @@ name: our-blue compose: - /etc/futureporn/our/compose.production.yaml - - services: + - | + services: server: ports: - - target: 5000 # container port - published: 8087 # Swarm ingress port + - target: 5000 + published: 8087 protocol: tcp mode: ingress + # - name: Remove stack # community.docker.docker_stack: # name: mystack