add role tag to certbot role

This commit is contained in:
lilly 2026-04-30 22:56:28 +02:00
commit e4722257b9
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g
7 changed files with 31 additions and 0 deletions

View file

@ -1,4 +1,6 @@
---
- name: get expiry date before
tags: [ "certbot" ]
ansible.builtin.command: /usr/bin/openssl x509 -enddate -noout -in /etc/letsencrypt/live/{{ item }}/fullchain.pem
ignore_errors: true
become: true
@ -6,11 +8,13 @@
register: certbot__cert_expiry_before
- name: obtain the certificate using certbot
tags: [ "certbot" ]
ansible.builtin.command: /usr/bin/certbot certonly --keep-until-expiring --agree-tos --non-interactive --email "{{ certbot__acme_account_email_address }}" --no-eff-email --standalone --http-01-port "{{ certbot__http_01_port }}" -d "{{ item }}"
become: true
changed_when: false
- name: get expiry date after
tags: [ "certbot" ]
ansible.builtin.command: /usr/bin/openssl x509 -enddate -noout -in /etc/letsencrypt/live/{{ item }}/fullchain.pem
become: true
changed_when: false