2018-12-17 19:22:30 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
apt: name={{ item }}
|
2020-02-03 19:46:31 +01:00
|
|
|
loop:
|
2019-09-17 08:51:03 +02:00
|
|
|
- php7.3-fpm
|
|
|
|
- php7.3-ldap
|
|
|
|
- php7.3-mysql
|
|
|
|
- php7.3-opcache
|
|
|
|
- php7.3-sqlite3
|
|
|
|
- php7.3-xml
|
2018-12-17 19:22:30 +01:00
|
|
|
|
|
|
|
- name: Create vhost directory
|
|
|
|
file: path=/var/www/partdb state=directory owner=www-data group=www-data
|
|
|
|
|
|
|
|
- name: Ensure partdb certificates are available
|
|
|
|
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/partdb.binary-kitchen.de.key -out /etc/nginx/ssl/partdb.binary-kitchen.de.crt -days 730 -subj "/CN=partdb.binary-kitchen.de" creates=/etc/nginx/ssl/partdb.binary-kitchen.de.crt
|
|
|
|
notify: Restart nginx
|
|
|
|
|
|
|
|
- name: Configure certificate manager
|
2019-05-20 19:49:08 +02:00
|
|
|
copy: src=certs dest=/etc/acertmgr/partdb.binary-kitchen.de.conf
|
2019-02-23 23:54:24 +01:00
|
|
|
notify: Run acertmgr
|
2018-12-17 19:22:30 +01:00
|
|
|
|
|
|
|
- name: Configure vhosts
|
|
|
|
copy: src=vhost dest=/etc/nginx/sites-available/www
|
|
|
|
notify: Restart nginx
|
|
|
|
|
|
|
|
- name: Enable vhosts
|
|
|
|
file: src=/etc/nginx/sites-available/www dest=/etc/nginx/sites-enabled/www state=link
|
|
|
|
notify: Restart nginx
|
|
|
|
|
2019-09-17 08:51:03 +02:00
|
|
|
- name: Start php7.3-fpm
|
|
|
|
service: name=php7.3-fpm state=started enabled=yes
|