dotfiles/roles/certbot/tasks/main.yml

34 lines
792 B
YAML
Raw Normal View History

---
- name: Packages
ansible.builtin.include_tasks: install.yml
tags: install
- name: Install the CLI configuration for Certbot
ansible.builtin.template:
src: templates/cli.ini
dest: /etc/letsencrypt/cli.ini
mode: 0600
owner: root
group: root
- name: Install the Porkbun Certbot container definition (quadlet)
ansible.builtin.template:
src: templates/certbot.container
dest: /etc/containers/systemd/certbot.container
mode: 0644
owner: root
group: root
- name: Install the timer for the quadlet
ansible.builtin.template:
src: templates/certbot.timer
dest: /etc/systemd/system/certbot.timer
mode: 0644
owner: root
group: root
- name: Enable the timer
ansible.builtin.service:
name: certbot.timer
enabled: true