From 0ff87214b5d6198cc0f4dd7a0210b097330a313f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 17 Dec 2022 18:36:06 +0100 Subject: feat(roles/acme): only show acme stderr --- roles/acme/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'roles') diff --git a/roles/acme/tasks/main.yml b/roles/acme/tasks/main.yml index 5f0f560..f2d4ba3 100644 --- a/roles/acme/tasks/main.yml +++ b/roles/acme/tasks/main.yml @@ -17,14 +17,14 @@ - name: generate acme certificates # noqa: no-changed-when ansible.builtin.command: acme-client -v {{ item }} loop: "{{ subdomains.stdout_lines }}" - register: result + register: acme_result_generation failed_when: - - result.rc != 0 - - "'certificate valid' not in result.stderr" + - acme_result_generation.rc != 0 + - "'certificate valid' not in acme_result_generation.stderr" - name: display registered certificates ansible.builtin.debug: - var: result + msg: "{{ acme_result_generation.results | map(attribute='stderr') }}" - name: enable automatic acme certificates update ansible.builtin.cron: -- cgit v1.2.3