#+BEGIN_SRC conf :tangle roles_t/core/tasks/main.yml
- name: Set PHP memory_limit for Nextcloud.
- become: yes
- lineinfile:
- path: /etc/php/7.4/apache2/php.ini
- regexp: memory_limit *=
- line: memory_limit = 512M
- when: ansible_distribution != 'Debian'
- or 12 > ansible_distribution_major_version|int
-
-- name: Set PHP memory_limit for Nextcloud (Debian 12).
become: yes
lineinfile:
path: /etc/php/8.2/apache2/php.ini
regexp: memory_limit *=
line: memory_limit = 512M
- when: ansible_distribution == 'Debian'
- and 11 < ansible_distribution_major_version|int
- name: Include PHP parameters for Nextcloud.
become: yes
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
- dest: /etc/php/7.4/mods-available/nextcloud.ini
+ dest: /etc/php/8.2/mods-available/nextcloud.ini
notify: Restart Apache2.
- name: Enable Nextcloud PHP modules.
follow: no
- name: Set PHP memory_limit for Nextcloud.
- become: yes
- lineinfile:
- path: /etc/php/7.4/apache2/php.ini
- regexp: memory_limit *=
- line: memory_limit = 512M
- when: ansible_distribution != 'Debian'
- or 12 > ansible_distribution_major_version|int
-
-- name: Set PHP memory_limit for Nextcloud (Debian 12).
become: yes
lineinfile:
path: /etc/php/8.2/apache2/php.ini
regexp: memory_limit *=
line: memory_limit = 512M
- when: ansible_distribution == 'Debian'
- and 11 < ansible_distribution_major_version|int
- name: Include PHP parameters for Nextcloud.
become: yes
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
- dest: /etc/php/7.4/mods-available/nextcloud.ini
+ dest: /etc/php/8.2/mods-available/nextcloud.ini
notify: Restart Apache2.
- name: Enable Nextcloud PHP modules.