From 43b95bc129d3d1bbdf5736c092b546c61bad6ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 25 Jul 2023 17:17:15 +0200 Subject: [PATCH] change command module to shell --- roles/webserver/tasks/main.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/webserver/tasks/main.yaml b/roles/webserver/tasks/main.yaml index 04976c6..c73d9e7 100644 --- a/roles/webserver/tasks/main.yaml +++ b/roles/webserver/tasks/main.yaml @@ -42,7 +42,8 @@ mode: 0600 - name: Generate certificate for all server instances - ansible.builtin.command: certbot certonly --non-interactive --agree-tos -m iam@tormakristof.eu --dns-cloudflare --dns-cloudflare-credentials /root/cf-creds.ini -d {{item.domain}} + ansible.builtin.shell: + cmd: certbot certonly --non-interactive --agree-tos -m iam@tormakristof.eu --dns-cloudflare --dns-cloudflare-credentials /root/cf-creds.ini -d {{item.domain}} with_items: "{{ webserver }}" - name: "Generate certbot script"