aboutsummaryrefslogtreecommitdiffstats
path: root/roles/acme/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/acme/tasks')
-rw-r--r--roles/acme/tasks/main.yml10
1 files changed, 5 insertions, 5 deletions
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
remember that computers suck.