From 0df015e9b5c4aefd4245c94ee98021d2af80ed99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 22 Oct 2022 16:41:45 +0200 Subject: lint: pass ansible-lint + yamllint --- roles/acme/tasks/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'roles/acme/tasks') diff --git a/roles/acme/tasks/main.yml b/roles/acme/tasks/main.yml index 5834cb5..0f55977 100644 --- a/roles/acme/tasks/main.yml +++ b/roles/acme/tasks/main.yml @@ -1,5 +1,5 @@ - name: generate acme-client configuration - template: + ansible.builtin.template: src: acme-client.conf.j2 dest: "{{ acme_configuration_file }}" owner: 0 @@ -7,13 +7,13 @@ mode: 0644 - name: retrieve enabled domains # noqa: no-changed-when - shell: | + ansible.builtin.shell: | set -o pipefail grep "^domain" /etc/acme-client.conf | cut -d " " -f 2 register: subdomains - name: generate acme certificates # noqa: no-changed-when - command: acme-client -v {{ item }} + ansible.builtin.command: acme-client -v {{ item }} loop: "{{ subdomains.stdout_lines }}" register: result failed_when: @@ -21,11 +21,11 @@ - "'certificate valid' not in result.stderr" - name: display registered certificates - debug: + ansible.builtin.debug: var: result - name: enable automatic acme certificates update - cron: + ansible.builtin.cron: name: "automatic acme certificates update for subdomain : {{ item }}" minute: 0 hour: 6,18 -- cgit v1.2.3