first commit
This commit is contained in:
19
roles/caddy/tasks/install.yml
Normal file
19
roles/caddy/tasks/install.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: download latest release
|
||||
get_url:
|
||||
url: "{{ caddy_amd64_linux_cloudflare_binary_url }}"
|
||||
dest: /usr/local/bin/caddy
|
||||
owner: root
|
||||
group: root
|
||||
mode: a+x
|
||||
ignore_errors: true
|
||||
|
||||
- name: Add the caddy group
|
||||
ansible.builtin.group:
|
||||
name: caddy
|
||||
state: present
|
||||
|
||||
- name: Add the caddy user
|
||||
ansible.builtin.user:
|
||||
name: caddy
|
||||
group: caddy
|
||||
Reference in New Issue
Block a user