caddy: make plugin list configureable (fixes #4)

This commit is contained in:
Jannik Beyerstedt 2020-05-24 17:08:11 +02:00
parent 3720b6bf73
commit 06cd3d3076
4 changed files with 8 additions and 4 deletions

View file

@ -22,17 +22,17 @@
- name: caddyserver - Download caddy webserver (amd64)
get_url:
url: "https://caddyserver.com/download/linux/amd64?plugins=http.ratelimit&license=personal"
url: "https://caddyserver.com/download/linux/amd64?plugins={{ caddy_plugins }}&license=personal"
dest: "{{ caddy_cachedir }}/tmp/caddy.tar.gz"
when: ansible_architecture == "x86_64"
- name: caddyserver - Download caddy webserver (armv7/ raspberry pi)
get_url:
url: "https://caddyserver.com/download/linux/arm7?plugins=http.ratelimit&license=personal"
url: "https://caddyserver.com/download/linux/arm7?plugins={{ caddy_plugins }}&license=personal"
dest: "{{ caddy_cachedir }}/tmp/caddy.tar.gz"
when: ansible_architecture == "armv7l"
- name: caddyserver - Download caddy webserver (arm64)
get_url:
url: "https://caddyserver.com/download/linux/arm64?plugins=http.ratelimit&license=personal"
url: "https://caddyserver.com/download/linux/arm64?plugins={{ caddy_plugins }}&license=personal"
dest: "{{ caddy_cachedir }}/tmp/caddy.tar.gz"
when: ansible_architecture == "aarch64"

View file

@ -34,7 +34,7 @@
repo: "deb [arch={{ dpkg_arch.stdout }}] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
state: present
when: ansible_facts['lsb']['id'] != "Raspbian"
- name: docker - Add docker CE repo (Rasbian)
- name: docker - Add docker CE repo (Raspbian)
become: yes
apt_repository:
repo: "deb [arch={{ dpkg_arch.stdout }}] https://download.docker.com/linux/raspbian {{ ansible_distribution_release }} stable"