mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-16 09:35:10 +01:00
improve caddy repo
This commit is contained in:
parent
116bb3d971
commit
f856a14025
1 changed files with 5 additions and 1 deletions
|
|
@ -37,11 +37,15 @@
|
||||||
|
|
||||||
sudo rm -f /usr/share/keyrings/caddy-stable-archive-keyring.gpg
|
sudo rm -f /usr/share/keyrings/caddy-stable-archive-keyring.gpg
|
||||||
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
|
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
|
||||||
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
|
|
||||||
|
|
||||||
# todo: show ok/changed
|
# todo: show ok/changed
|
||||||
args:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
|
- name: Add caddy repository
|
||||||
|
ansible.builtin.get_url:
|
||||||
|
url: "https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt"
|
||||||
|
dest: "/etc/apt/sources.list.d/caddy-stable.list"
|
||||||
|
mode: "u=rw,g=r,o=r"
|
||||||
- name: Install caddy
|
- name: Install caddy
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: caddy
|
name: caddy
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue