aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-12-17 18:36:06 +0100
committerRomain Gonçalves <me@rgoncalves.se>2022-12-17 18:36:06 +0100
commit0ff87214b5d6198cc0f4dd7a0210b097330a313f (patch)
tree532744fbeaca5557e53d83f28c345e90941b3d02 /roles
parent1c48b355ef91758b000c74f37c3f31b3d6b237a7 (diff)
downloadrules-0ff87214b5d6198cc0f4dd7a0210b097330a313f.tar.gz
feat(roles/acme): only show acme stderr
Diffstat (limited to 'roles')
-rw-r--r--roles/acme/tasks/main.yml8
1 files changed, 4 insertions, 4 deletions
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:
remember that computers suck.