Add NextCloud task
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
---
|
||||
|
||||
- name: "Change document root in default site"
|
||||
ansible.builtin.replace:
|
||||
path: /etc/apache2/sites-available/000-default.conf
|
||||
regexp: 'DocumentRoot /var/www/html'
|
||||
replace: 'DocumentRoot /var/www/nextcloud'
|
||||
backup: yes
|
||||
notify: "restart apache2"
|
||||
|
||||
- name: "Configure php - upload_max_filesize"
|
||||
ansible.builtin.replace:
|
||||
path: /etc/php/8.4/apache2/php.ini
|
||||
regexp: "upload_max_filesize = 2M"
|
||||
replace: "upload_max_filesize = 1G"
|
||||
backup: yes
|
||||
# changed_when: "'upload_max_filesize = 1G' in lookup('file', '/etc/php/8.4/apache2/php.ini')"
|
||||
notify: "restart apache2"
|
||||
|
||||
- name: "Configure php - memory_limit"
|
||||
ansible.builtin.replace:
|
||||
path: /etc/php/8.4/apache2/php.ini
|
||||
regexp: "memory_limit = 128M"
|
||||
replace: "memory_limit = 1G"
|
||||
backup: yes
|
||||
# changed_when: "'memory_limit = 1G' in lookup('file', '/etc/php/8.4/apache2/php.ini')"
|
||||
notify: "restart apache2"
|
||||
|
||||
- name: "Configure php - output_buffering"
|
||||
ansible.builtin.replace:
|
||||
path: /etc/php/8.4/apache2/php.ini
|
||||
regexp: "output_buffering = 4096"
|
||||
replace: "output_buffering = off"
|
||||
backup: yes
|
||||
# changed_when: "'output_buffering = off' in lookup('file', '/etc/php/8.4/apache2/php.ini')"
|
||||
notify: "restart apache2"
|
||||
Reference in New Issue
Block a user