2024-07-10 16:43:18 +02:00
|
|
|
---
|
|
|
|
- name: Packages
|
|
|
|
ansible.builtin.include_tasks: install.yml
|
|
|
|
tags: install
|
|
|
|
|
2024-11-11 17:03:53 +01:00
|
|
|
- name: Install the CLI configuration for Certbot
|
2024-07-10 16:43:18 +02:00
|
|
|
ansible.builtin.template:
|
2024-11-11 17:03:53 +01:00
|
|
|
src: templates/cli.ini
|
|
|
|
dest: /etc/letsencrypt/cli.ini
|
2024-07-10 16:43:18 +02:00
|
|
|
mode: 0600
|
|
|
|
owner: root
|
|
|
|
group: root
|
2024-11-11 17:03:53 +01:00
|
|
|
|
|
|
|
- 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 Certbot 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.systemd_service:
|
|
|
|
daemon_reload: true
|
|
|
|
enabled: true
|
|
|
|
name: certbot.timer
|
|
|
|
state: "started"
|