caddy: move to deb822 repo

This commit is contained in:
uumas
2025-03-28 04:14:58 +02:00
parent 65552ee816
commit bb30a2024f

View File

@@ -7,17 +7,20 @@
- name: debian - name: debian
version_min: 11 version_min: 11
- name: ubuntu - name: ubuntu
version_min: 20 version_min: 22
- name: Ensure legacy caddy apt repository not present
ansible.builtin.file:
path: /etc/apt/sources.list.d/caddy-stable.list
state: absent
- name: Add caddy apt repository - name: Add caddy apt repository
ansible.builtin.include_role: ansible.builtin.deb822_repository:
name: apt_repository name: caddy-stable
vars: uris: https://dl.cloudsmith.io/public/caddy/stable/deb/debian
repo_name: caddy-stable signed_by: https://dl.cloudsmith.io/public/caddy/stable/gpg.key
repo_url: https://dl.cloudsmith.io/public/caddy/stable/deb/debian suites: any-version
repo_key_url: https://dl.cloudsmith.io/public/caddy/stable/gpg.key components:
repo_suite: any-version
repo_components:
- main - main
when: > when: >
(ansible_distribution == 'Debian' and ansible_distribution_major_version | int == 11) or (ansible_distribution == 'Debian' and ansible_distribution_major_version | int == 11) or