feat(playbook.yml): create /etc/caddy, Caddyfile and .env file
This commit is contained in:
parent
b9477be1b3
commit
92948eb258
1 changed files with 15 additions and 0 deletions
15
playbook.yml
15
playbook.yml
|
|
@ -16,6 +16,21 @@
|
|||
create_home: yes
|
||||
group: caddy
|
||||
|
||||
- name: Ensure directory "/etc/caddy" exists
|
||||
file:
|
||||
path: /etc/caddy
|
||||
state: directory
|
||||
|
||||
- name: Ensure file "/etc/caddy/Caddyfile" exists
|
||||
file:
|
||||
path: /etc/caddy/Caddyfile
|
||||
state: touch
|
||||
|
||||
- name: Ensure file "/etc/caddy/.env" exists"
|
||||
file:
|
||||
path: /etc/caddy/.env
|
||||
state: touch
|
||||
|
||||
- name: Copy Caddy binary
|
||||
copy:
|
||||
src: caddy
|
||||
|
|
|
|||
Reference in a new issue