aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-21 17:25:27 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-21 17:49:50 +0000
commit53f7dca9bb5b7ceb20fb96cbb19d00ad818491ef (patch)
tree4ba7637a313a4295d5b06b73a2e7385773ceee5b /roles
parent14855dcd18d595b9a6988cdbbbd06e05253edcc7 (diff)
downloadrules-53f7dca9bb5b7ceb20fb96cbb19d00ad818491ef.tar.gz
roles/acme: Pass ansible-lint
Diffstat (limited to 'roles')
-rw-r--r--roles/acme/tasks/main.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/roles/acme/tasks/main.yml b/roles/acme/tasks/main.yml
index aad4342..5834cb5 100644
--- a/roles/acme/tasks/main.yml
+++ b/roles/acme/tasks/main.yml
@@ -6,11 +6,13 @@
group: 0
mode: 0644
-- name: retrieve enabled domains
- shell: grep "^domain" /etc/acme-client.conf | cut -d " " -f 2
+- name: retrieve enabled domains # noqa: no-changed-when
+ shell: |
+ set -o pipefail
+ grep "^domain" /etc/acme-client.conf | cut -d " " -f 2
register: subdomains
-- name: generate acme certificates
+- name: generate acme certificates # noqa: no-changed-when
command: acme-client -v {{ item }}
loop: "{{ subdomains.stdout_lines }}"
register: result
remember that computers suck.