any.tools.caddy: switch to better module

main
Jef Roosens 2025-07-04 16:11:23 +02:00
parent 7f10c05cec
commit 9fdff493b2
No known key found for this signature in database
GPG Key ID: 21FD3D77D56BAF49
1 changed files with 10 additions and 15 deletions

View File

@ -1,18 +1,13 @@
- name: Add Caddy GPG key
ansible.builtin.get_url:
url: 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key'
dest: '/etc/apt/trusted.gpg.d/caddy.asc'
mode: '0644'
force: true
- name: Add Caddy repositories
apt_repository:
repo: "{{ item }} https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version main"
filename: 'caddy-stable'
state: present
with_items:
- deb
- deb-src
- name: Add Caddy repository and key
ansible.builtin.deb822_repository:
name: 'caddy'
types:
- deb
- deb-src
uris: 'https://dl.cloudsmith.io/public/caddy/stable/deb/debian'
suites: 'any-version'
components: 'main'
signed_by: 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key'
- name: Install Caddy
apt: