diff --git a/README.md b/README.md index 46d8525..fb990e5 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,9 @@ Currently the following hosts are installed: | knoedel.binary.kitchen | Debian 12 | SIP-DECT OMM | | bob.binary.kitchen | Debian 12 | Gitea Actions | | lasagne.binary.kitchen | Debian 12 | Home Assistant * | -| tschunk.binary.kitchen | Debian 11 | Strichliste | +| tschunk.binary.kitchen | Debian 12 | Strichliste | | bowle.binary.kitchen | Debian 12 | Files | -| lock-auweg.binary.kitchen | Debian 11 | Doorlock | +| lock-auweg.binary.kitchen | Debian 12 | Doorlock | \*: The main application is not managed by ansible but manually installed diff --git a/roles/strichliste/tasks/main.yml b/roles/strichliste/tasks/main.yml index 2dde88f..6dc17c9 100644 --- a/roles/strichliste/tasks/main.yml +++ b/roles/strichliste/tasks/main.yml @@ -3,28 +3,21 @@ - name: Request nsupdate key for certificate 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 apt: name: - - php8.1 - - php8.1-common - - php8.1-curl - - php8.1-mysql - - php8.1-mbstring - - php8.1-cli - - php8.1-opcache - - php8.1-xml - - php8.1-fpm - - php8.1-readline + - php + - php-common + - php-curl + - php-mysql + - php-mbstring + - php-cli + - php-opcache + - php-xml + - php-fpm + - php-readline - mariadb-server - python3-mysqldb - - python3-psycopg2 - 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 @@ -37,12 +30,6 @@ - name: Create vhost directory 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 community.mysql.mysql_db: name={{ strichliste_dbname }} become: true @@ -77,5 +64,5 @@ file: src=/etc/nginx/sites-available/strichliste dest=/etc/nginx/sites-enabled/strichliste state=link notify: Restart nginx -- name: Start php8.1-fpm - service: name=php8.1-fpm state=started enabled=yes +- name: Start php8.2-fpm + service: name=php8.2-fpm state=started enabled=yes