feat: Update configuration for Nextcloud and Certbot, add image and video organization scripts

This commit is contained in:
2026-01-08 23:39:55 +01:00
parent 3c6647c215
commit 2c8b753393
12 changed files with 440 additions and 19 deletions
+33 -2
View File
@@ -18,19 +18,35 @@
ansible.builtin.fail:
msg: "CloudDNS nameserver is not set"
- name: Install Certbot and dependencies
- name: Remove Certbot installed via package manager (Debian/Ubuntu)
when: ansible_os_family == "Debian"
ansible.builtin.apt:
name:
- certbot
state: absent
- name: Remove Certbot installed via package manager (RedHat/CentOS)
when: ansible_os_family == "RedHat"
ansible.builtin.dnf:
name:
- certbot
state: present
state: absent
- name: Install cloudDNS plugin dependencies
ansible.builtin.pip:
name:
- certbot
- certbot-dns-cloudns
state: present
- name: Ensure CloudDNS credentials directory exists
ansible.builtin.file:
path: "/etc/letsencrypt"
state: directory
owner: root
group: root
mode: '0700'
- name: Create ClouDNS credentials file
ansible.builtin.copy:
dest: "{{ cloudns_credentials_path }}"
@@ -59,3 +75,18 @@
job: "certbot renew --quiet"
minute: 0
hour: 3
- name: Setup cockpit certifcate (if defined)
when: certbot_cockpit_domain is defined
block:
- name: Create symlink for Cockpit certificate
ansible.builtin.file:
src: "/etc/letsencrypt/live/{{ certbot_cockpit_domain }}/fullchain.pem"
dest: "/etc/cockpit/ws-certs.d/99-letsencrypt-cert.cert"
state: link
- name: Create symlink for Cockpit private key
ansible.builtin.file:
src: "/etc/letsencrypt/live/{{ certbot_cockpit_domain }}/privkey.pem"
dest: "/etc/cockpit/ws-certs.d/99-letsencrypt-cert.key"
state: link