From 53f7dca9bb5b7ceb20fb96cbb19d00ad818491ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 21 Dec 2021 17:25:27 +0000 Subject: roles/acme: Pass ansible-lint --- roles/acme/tasks/main.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'roles/acme') 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 -- cgit v1.2.3