forked from infra/ansible
nextcloud: make compatiable with Debian 12
This commit is contained in:
parent
265aa863fd
commit
a219a7ecaf
@ -46,7 +46,7 @@ Currently the following hosts are installed:
|
||||
| beryllium.binary-kitchen.net | Debian 12 | Web * |
|
||||
| boron.binary-kitchen.net | Debian 12 | Gitea |
|
||||
| carbon.binary-kitchen.net | Debian 12 | Jabber |
|
||||
| nitrogen.binary-kitchen.net | Debian 11 | NextCloud |
|
||||
| nitrogen.binary-kitchen.net | Debian 12 | NextCloud |
|
||||
| oxygen.binary-kitchen.net | Debian 12 | Shell |
|
||||
| fluorine.binary-kitchen.net | Debian 12 | Web (div. via Docker) |
|
||||
| neon.binary-kitchen.net | Debian 12 | Auth. DNS |
|
||||
|
@ -1,12 +1,4 @@
|
||||
; configuration for php opcache module
|
||||
; priority=10
|
||||
zend_extension=opcache.so
|
||||
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=1
|
||||
opcache.interned_strings_buffer=8
|
||||
opcache.max_accelerated_files=10000
|
||||
opcache.memory_consumption=128
|
||||
opcache.save_comments=1
|
||||
opcache.revalidate_freq=1
|
||||
opcache.jit_buffer_size=100M
|
||||
opcache.jit=off
|
||||
|
@ -230,7 +230,7 @@ pm.max_spare_servers = 15
|
||||
; last request memory: 0
|
||||
;
|
||||
; Note: There is a real-time FPM status monitoring sample web page available
|
||||
; It's available in: /usr/share/php/8.2/fpm/status.html
|
||||
; It's available in: /usr/share/php/8.3/fpm/status.html
|
||||
;
|
||||
; Note: The value must start with a leading slash (/). The value can be
|
||||
; anything, but it may not be a good idea to use the .php extension or it
|
||||
|
@ -3,5 +3,5 @@
|
||||
- name: Restart nginx
|
||||
service: name=nginx state=restarted
|
||||
|
||||
- name: Restart php8.2-fpm
|
||||
service: name=php8.2-fpm state=restarted
|
||||
- name: Restart php8.3-fpm
|
||||
service: name=php8.3-fpm state=restarted
|
||||
|
@ -10,48 +10,47 @@
|
||||
apt_key: url="https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg"
|
||||
|
||||
- name: Enable collaboraoffice repository
|
||||
apt_repository: repo="deb https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-debian11 ./"
|
||||
apt_repository: repo="deb https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-deb ./"
|
||||
|
||||
- name: Install packages
|
||||
apt:
|
||||
name:
|
||||
- php8.2
|
||||
- php8.2-apcu
|
||||
- php8.2-bcmath
|
||||
- php8.2-bz2
|
||||
- php8.2-cli
|
||||
- php8.2-common
|
||||
- php8.2-curl
|
||||
- php8.2-dev
|
||||
- php8.2-fpm
|
||||
- php8.2-gd
|
||||
- php8.2-gmp
|
||||
- php8.2-imagick
|
||||
- php8.2-imap
|
||||
- php8.2-intl
|
||||
- php8.2-ldap
|
||||
- php8.2-mbstring
|
||||
- php8.2-mysql
|
||||
- php8.2-opcache
|
||||
- php8.2-pgsql
|
||||
- php8.2-readline
|
||||
- php8.2-redis
|
||||
- php8.2-soap
|
||||
- php8.2-sqlite3
|
||||
- php8.2-tidy
|
||||
- php8.2-xml
|
||||
- php8.2-xmlrpc
|
||||
- php8.2-zip
|
||||
- php8.3
|
||||
- php8.3-apcu
|
||||
- php8.3-bcmath
|
||||
- php8.3-bz2
|
||||
- php8.3-cli
|
||||
- php8.3-common
|
||||
- php8.3-curl
|
||||
- php8.3-fpm
|
||||
- php8.3-gd
|
||||
- php8.3-gmp
|
||||
- php8.3-imagick
|
||||
- php8.3-imap
|
||||
- php8.3-intl
|
||||
- php8.3-ldap
|
||||
- php8.3-mbstring
|
||||
- php8.3-mysql
|
||||
- php8.3-opcache
|
||||
- php8.3-pgsql
|
||||
- php8.3-readline
|
||||
- php8.3-redis
|
||||
- php8.3-soap
|
||||
- php8.3-sqlite3
|
||||
- php8.3-tidy
|
||||
- php8.3-xml
|
||||
- php8.3-xmlrpc
|
||||
- php8.3-zip
|
||||
- postgresql
|
||||
- python3-psycopg2
|
||||
|
||||
- name: Configure PostgreSQL database
|
||||
postgresql_db: name={{ nextcloud_dbname }}
|
||||
- name: Configure PostgreSQL user
|
||||
postgresql_user: name={{ nextcloud_dbuser }} password={{ nextcloud_dbpass }}
|
||||
become: true
|
||||
become_user: postgres
|
||||
|
||||
- name: Configure PostgreSQL user
|
||||
postgresql_user: db={{ nextcloud_dbname }} name={{ nextcloud_dbuser }} password={{ nextcloud_dbpass }} priv=ALL state=present
|
||||
- name: Configure PostgreSQL database
|
||||
postgresql_db: name={{ nextcloud_dbname }} owner={{ nextcloud_dbuser }}
|
||||
become: true
|
||||
become_user: postgres
|
||||
|
||||
@ -70,20 +69,20 @@
|
||||
template: src=vhost.j2 dest=/etc/nginx/sites-available/nextcloud
|
||||
notify: Restart nginx
|
||||
|
||||
- name: Configure php8.2-fpm
|
||||
copy: src=www.conf dest=/etc/php/8.2/fpm/pool.d/www.conf
|
||||
notify: Restart php8.2-fpm
|
||||
- name: Configure php8.3-fpm
|
||||
copy: src=www.conf dest=/etc/php/8.3/fpm/pool.d/www.conf
|
||||
notify: Restart php8.3-fpm
|
||||
|
||||
- name: Configure php8.2 opcache
|
||||
copy: src=opcache.ini dest=/etc/php/8.2/mods-available/opcache.ini
|
||||
notify: Restart php8.2-fpm
|
||||
- name: Configure php8.3 opcache
|
||||
copy: src=opcache.ini dest=/etc/php/8.3/mods-available/opcache.ini
|
||||
notify: Restart php8.3-fpm
|
||||
|
||||
- name: Enable vhost
|
||||
file: src=/etc/nginx/sites-available/nextcloud dest=/etc/nginx/sites-enabled/nextcloud state=link
|
||||
notify: Restart nginx
|
||||
|
||||
- name: Start php8.2-fpm
|
||||
service: name=php8.2-fpm state=started enabled=yes
|
||||
- name: Start php8.3-fpm
|
||||
service: name=php8.3-fpm state=started enabled=yes
|
||||
|
||||
- name: Start PostgreSQL
|
||||
service: name=postgresql state=started enabled=yes
|
||||
|
Loading…
Reference in New Issue
Block a user