name: "{{ item }}"
loop: [ userdir, cgi ]
notify: Restart Apache2.
+ when: ansible_distribution != 'Debian'
+ or 12 > ansible_distribution_major_version|int
+
+- name: Enable Apache2 modules (Debian 12).
+ become: yes
+ apache2_module:
+ name: "{{ item }}"
+ loop: [ userdir, cgid ]
+ notify: Restart Apache2.
+ when: ansible_distribution == 'Debian'
+ and 11 < ansible_distribution_major_version|int
#+END_SRC
With Apache installed there is a =/etc/apache/sites-available/=
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
name: "{{ item }}"
loop: [ userdir, cgi ]
notify: Restart Apache2.
+ when: ansible_distribution != 'Debian'
+ or 12 > ansible_distribution_major_version|int
+
+- name: Enable Apache2 modules (Debian 12).
+ become: yes
+ apache2_module:
+ name: "{{ item }}"
+ loop: [ userdir, cgid ]
+ notify: Restart Apache2.
+ when: ansible_distribution == 'Debian'
+ and 11 < ansible_distribution_major_version|int
- name: Install live web site.
become: yes
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