aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-05-10 08:40:07 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-05-10 08:40:07 +0200
commit9846c2636282e1a62b53b34a54854423e7d6dbac (patch)
treee5edda0f8a7045974a0a4e2aa792620ce9e8e151 /ansible
parent437cabee52b12ddbe6c6685d9b9d4257d04216ef (diff)
downloadinfra-9846c2636282e1a62b53b34a54854423e7d6dbac.tar.gz
infra-9846c2636282e1a62b53b34a54854423e7d6dbac.tar.bz2
infra-9846c2636282e1a62b53b34a54854423e7d6dbac.tar.xz
infra-9846c2636282e1a62b53b34a54854423e7d6dbac.zip
o Adding nextcloud stuff.
Diffstat (limited to 'ansible')
-rw-r--r--ansible/malabaricus.yml39
1 files changed, 36 insertions, 3 deletions
diff --git a/ansible/malabaricus.yml b/ansible/malabaricus.yml
index 6f4c5af..26587ad 100644
--- a/ansible/malabaricus.yml
+++ b/ansible/malabaricus.yml
@@ -9,7 +9,40 @@
ipv6: "[::]:80"
server_name: minio.trygvis.io
+# Nextcloud
- hosts:
- - all !malabaricus # no binaries for arm
- roles:
- - minio-bin
+ - malabaricus
+ tags: nextcloud
+ become: yes
+ tasks:
+ - apt:
+ name:
+ - php-imagick
+ tags: packages
+ - file:
+ path: /var/www/html/nextcloud/occ
+ mode: ug=rx,o=
+ owner: www-data
+ group: www-data
+ - copy:
+ dest: /etc/php/7.0/fpm/conf.d/99-nextcloud.ini
+ content: |
+ opcache.enable=1
+ opcache.enable_cli=1
+ opcache.interned_strings_buffer=8
+ opcache.max_accelerated_files=10000
+ opcache.memory_consumption=128
+ opcache.save_comments=1
+ opcache.revalidate_freq=1
+ - lineinfile:
+ path: /etc/php/7.0/fpm/pool.d/www.conf
+ regexp: 'env[{{ item.key }}]'
+ line: 'env[{{ item.key }}] = {{ item.value }}'
+ with_dict:
+ HOSTNAME: '$HOSTNAME'
+ PATH: /usr/sbin:/usr/bin:/sbin:/bin
+ TMP: /tmp
+ TMPDIR: /tmp
+ TEMP: /tmp
+
+# TODO: comply with warnings from https://malabaricus.trygvis.io/settings/admin/overview