2024-08-02 04:27:30 +00:00
|
|
|
# vi: ft=yaml.ansible
|
|
|
|
- name: install caddy
|
|
|
|
apt:
|
|
|
|
deb: https://github.com/caddyserver/caddy/releases/download/v2.8.4/caddy_2.8.4_linux_amd64.deb
|
2024-08-05 20:04:05 +00:00
|
|
|
- name: install php
|
|
|
|
apt:
|
|
|
|
name: php
|
|
|
|
- name: install php-sqlite3
|
|
|
|
apt:
|
|
|
|
name: php-sqlite3
|
|
|
|
- name: install php-mbstring
|
|
|
|
apt:
|
|
|
|
name: php-mbstring
|
|
|
|
- name: install php-fpm
|
|
|
|
apt:
|
|
|
|
name: php-fpm
|
|
|
|
- name: ensure php-fpm is running
|
|
|
|
service: name=php8.2-fpm state=started enabled=yes
|
2024-08-02 04:27:30 +00:00
|
|
|
- name: ensure /run/caddy exists
|
|
|
|
file:
|
|
|
|
path: /run/caddy
|
|
|
|
state: directory
|
|
|
|
mode: '0755'
|
|
|
|
owner: caddy
|
|
|
|
group: caddy
|
|
|
|
- name: ensure caddy is running
|
|
|
|
service: name=caddy state=started enabled=yes
|