From c3e96bdd2296f2c4189dba8ada29b4c54fa083a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Tue, 9 Sep 2025 14:25:25 +0300 Subject: [PATCH] Create folders for each cert --- tasks/deployer.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/deployer.yml b/tasks/deployer.yml index 07eb0b0..aa9a26c 100644 --- a/tasks/deployer.yml +++ b/tasks/deployer.yml @@ -455,8 +455,12 @@ - name: "Deployer - OpenSSL - Configure - Create Folder" ansible.builtin.file: - path: "/root/data/openssl/" + path: "/root/data/openssl/{{ cert }}" state: directory + loop: "{{ config.openssl.certificates.keys() | list }}" + loop_control: + label: "{{ cert }}" + loop_var: "cert" tags: - openssl - www