any.tools.caddy: switch to better module
parent
7f10c05cec
commit
9fdff493b2
|
@ -1,18 +1,13 @@
|
||||||
- name: Add Caddy GPG key
|
- name: Add Caddy repository and key
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.deb822_repository:
|
||||||
url: 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key'
|
name: 'caddy'
|
||||||
dest: '/etc/apt/trusted.gpg.d/caddy.asc'
|
types:
|
||||||
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
|
||||||
- deb-src
|
- 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
|
- name: Install Caddy
|
||||||
apt:
|
apt:
|
||||||
|
|
Loading…
Reference in New Issue