aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nextcloud/tasks/main.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-04-29 20:23:01 +0200
committerRomain Gonçalves <me@rgoncalves.se>2021-04-29 20:23:01 +0200
commitf33cb3ee05e63a8f0606e3a28ca9bbe0f947582c (patch)
tree7754d6344a1baaa1ba829ab39f31e69f8b36c92f /roles/nextcloud/tasks/main.yml
parentd423e2f163ba0552639d7ac01cdd8c1f566b7978 (diff)
downloadold-infrastructure-f33cb3ee05e63a8f0606e3a28ca9bbe0f947582c.tar.gz
roles/nextcloud: Refactor configuration files
Diffstat (limited to 'roles/nextcloud/tasks/main.yml')
-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.