aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nextcloud/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/nextcloud/tasks')
-rw-r--r--roles/nextcloud/tasks/main.yml29
1 files changed, 8 insertions, 21 deletions
diff --git a/roles/nextcloud/tasks/main.yml b/roles/nextcloud/tasks/main.yml
index 3e143a8..ccc35a5 100644
--- a/roles/nextcloud/tasks/main.yml
+++ b/roles/nextcloud/tasks/main.yml
@@ -26,26 +26,13 @@
mode: 0644
when: ansible_distribution == "OpenBSD"
-- name: ensure extensions are enabled in php-fpm
- lineinfile:
- path: /etc/php-7.3.ini
- regexp: "{{ item }}"
- line: "{{ item }}"
- loop:
- - extension=curl
- - extension=pdo_pgsql
- - extension=intl
-
-- name: ensure other config are corrects in php-fpm
- lineinfile:
- path: /etc/php-7.3.ini
- regexp: "^{{ item[0] }}*"
- line: "{{ item[0] }}={{ item[1] }}"
- loop:
- - [ "allow_url_fopen", "On" ]
- - [ "upload_max_filesize", "100M" ]
- - [ "post_max_size", "100M" ]
- - [ "memory_limit", "1024M" ]
+- name: generate nextcloud php config
+ template:
+ src: etc-php-7.3.ini.j2
+ dest: /etc/php-7.3.ini
+ owner: "www"
+ group: "www"
+ mode: "0644"
- name: generate nextcloud custom config
template:
@@ -68,7 +55,7 @@
job: "php -f /var/www/nextcloud/cron.php"
user: www
-- name: ensure directories are chow to www
+- name: ensure directories are chown to www
file:
path: "/var/www/nextcloud/{{ item }}"
owner: "www"
remember that computers suck.