caddy: use apt_repository role

This commit is contained in:
uumas
2023-09-04 00:51:35 +03:00
parent 01182d07e6
commit fa7288bc7b

View File

@@ -1,22 +1,15 @@
--- ---
- name: Install dependencies - name: Add caddy apt repository
apt: ansible.builtin.import_role:
name: name: apt_repository
- debian-keyring vars:
- debian-archive-keyring repo_name: caddy-stable
- apt-transport-https repo_url: https://dl.cloudsmith.io/public/caddy/stable/deb/debian
update_cache: true repo_key_url: https://dl.cloudsmith.io/public/caddy/stable/gpg.key
repo_suite: any-version
- name: Add caddy repo signing key repo_components:
apt_key: - main
id: '65760C51EDEA2017CEA2CA15155B6D79CA56EA34'
url: 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key'
- name: Add caddy repo
apt_repository:
repo: "deb https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version main"
filename: 'caddy-stable'
mode: '644'
- name: Install caddy - name: Install caddy
apt: apt: