From 024e155d92559b58f0462d0bcc8dc1d121b4ffa9 Mon Sep 17 00:00:00 2001 From: Bart Geesink Date: Fri, 9 Feb 2024 16:12:00 +0100 Subject: [PATCH] Docker: Add a task to rediscover the network facts after install docker. Makes sure we have the docker network interface details which are added to the firewall script --- roles/docker/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index 3f2cd2730..e5529b3a0 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -27,6 +27,10 @@ state: started enabled: true +- name: Gather some facts, as we want to need info on the docker network interface + ansible.builtin.setup: + gather_subset: network + - name: Create the traefik configuration file directory ansible.builtin.file: state: directory