new role and FWCNs
This commit is contained in:
1 parent
24d0ce3385
commit
d96bb79a5a
10 files changed
+169
-16
No files matched your search
@@ -0,0 +1,31 @@
|
||||
---
|
||||
- name: Install systemd service
|
||||
copy:
|
||||
dest: /etc/systemd/system/caddy.service
|
||||
mode: 0644
|
||||
content: |
|
||||
[Unit]
|
||||
Description=Caddy
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=/etc/caddy/powerdns.env
|
||||
ExecStart=/usr/local/bin/caddy run --environ --config /etc/caddy/Caddyfile
|
||||
ExecReload=/usr/local/bin/caddy reload --config /etc/caddy/Caddyfile --force
|
||||
Restart=on-failure
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
- name: Reload systemd
|
||||
systemd:
|
||||
daemon_reload: yes
|
||||
|
||||
- name: Enable and start Caddy
|
||||
systemd:
|
||||
name: caddy
|
||||
state: started
|
||||
enabled: yes
|
||||
Reference in new issue
Block a user