diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-12-21 17:25:27 +0000 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-12-21 17:49:50 +0000 |
commit | 53f7dca9bb5b7ceb20fb96cbb19d00ad818491ef (patch) | |
tree | 4ba7637a313a4295d5b06b73a2e7385773ceee5b | |
parent | 14855dcd18d595b9a6988cdbbbd06e05253edcc7 (diff) | |
download | rules-53f7dca9bb5b7ceb20fb96cbb19d00ad818491ef.tar.gz |
roles/acme: Pass ansible-lint
-rw-r--r-- | roles/acme/tasks/main.yml | 8 |
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 |