Sha256: a9c21a00e5944a32228794bd170a96b9c6853d326a587132a92de75bd112ada6

Contents?: true

Size: 747 Bytes

Versions: 3

Compression:

Stored size: 747 Bytes

Contents

---
  - name: Install ca-certificates
    become: true
    apt:
      pkg: "{{item}}"
      state: present
    with_items:
      - ca-certificates

  - name: "Set certbot binary"
    set_fact:
      certbot_bin: "certbot"

  - name: "Check for certbot-auto"
    stat:
      path: /opt/certbot/certbot-auto
    register: certbot_auto_exists

  - name: "Remove certbot-auto"
    file:
      path: /opt/certbot/certbot-auto
      state: absent
    when: certbot_auto_exists.stat.exists

  - name: "Remove certbot-auto cron task"
    cron:
      name: Auto-renew SSL
      job: "{{certbot_bin}} renew --no-self-upgrade --nginx >> /var/log/cron.log 2>&1"
      hour: "0"
      minute: "33"
      state: absent
    when: certbot_auto_exists.stat.exists

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
subspace-2.5.6 ansible/roles/letsencrypt/tasks/modern.yml
subspace-2.5.5 ansible/roles/letsencrypt/tasks/modern.yml
subspace-2.5.4 ansible/roles/letsencrypt/tasks/modern.yml