strichliste: use system version of debian
This commit is contained in:
parent
71025ea2f4
commit
35a3f9ae97
@ -3,28 +3,21 @@
|
|||||||
- name: Request nsupdate key for certificate
|
- name: Request nsupdate key for certificate
|
||||||
include_role: name=acme-dnskey-generate
|
include_role: name=acme-dnskey-generate
|
||||||
|
|
||||||
- name: Enable sury php apt-key
|
|
||||||
apt_key: url="https://packages.sury.org/php/apt.gpg"
|
|
||||||
|
|
||||||
- name: Enable sury php repository
|
|
||||||
apt_repository: repo="deb https://packages.sury.org/php/ {{ ansible_distribution_release }} main"
|
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- php8.1
|
- php
|
||||||
- php8.1-common
|
- php-common
|
||||||
- php8.1-curl
|
- php-curl
|
||||||
- php8.1-mysql
|
- php-mysql
|
||||||
- php8.1-mbstring
|
- php-mbstring
|
||||||
- php8.1-cli
|
- php-cli
|
||||||
- php8.1-opcache
|
- php-opcache
|
||||||
- php8.1-xml
|
- php-xml
|
||||||
- php8.1-fpm
|
- php-fpm
|
||||||
- php8.1-readline
|
- php-readline
|
||||||
- mariadb-server
|
- mariadb-server
|
||||||
- python3-mysqldb
|
- python3-mysqldb
|
||||||
- python3-psycopg2
|
|
||||||
|
|
||||||
- name: Ensure certificates are available
|
- name: Ensure certificates are available
|
||||||
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/{{ strichliste_domain }}.key -out /etc/nginx/ssl/{{ strichliste_domain }}.crt -days 730 -subj "/CN={{ strichliste_domain }}" creates=/etc/nginx/ssl/{{ strichliste_domain }}.crt
|
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/{{ strichliste_domain }}.key -out /etc/nginx/ssl/{{ strichliste_domain }}.crt -days 730 -subj "/CN={{ strichliste_domain }}" creates=/etc/nginx/ssl/{{ strichliste_domain }}.crt
|
||||||
@ -37,12 +30,6 @@
|
|||||||
- name: Create vhost directory
|
- name: Create vhost directory
|
||||||
file: path=/var/www/strichliste state=directory owner=www-data group=www-data
|
file: path=/var/www/strichliste state=directory owner=www-data group=www-data
|
||||||
|
|
||||||
- name: Install Mariadb
|
|
||||||
apt:
|
|
||||||
name:
|
|
||||||
- mariadb-server
|
|
||||||
- python3-mysqldb
|
|
||||||
|
|
||||||
- name: Configure Mariadb database
|
- name: Configure Mariadb database
|
||||||
community.mysql.mysql_db: name={{ strichliste_dbname }}
|
community.mysql.mysql_db: name={{ strichliste_dbname }}
|
||||||
become: true
|
become: true
|
||||||
@ -77,5 +64,5 @@
|
|||||||
file: src=/etc/nginx/sites-available/strichliste dest=/etc/nginx/sites-enabled/strichliste state=link
|
file: src=/etc/nginx/sites-available/strichliste dest=/etc/nginx/sites-enabled/strichliste state=link
|
||||||
notify: Restart nginx
|
notify: Restart nginx
|
||||||
|
|
||||||
- name: Start php8.1-fpm
|
- name: Start php8.2-fpm
|
||||||
service: name=php8.1-fpm state=started enabled=yes
|
service: name=php8.2-fpm state=started enabled=yes
|
||||||
|
Loading…
Reference in New Issue
Block a user