From 92a8f042b108bc5a2d936307ce7b05143067616e Mon Sep 17 00:00:00 2001 From: binary Date: Fri, 22 Jan 2021 21:48:30 +0100 Subject: Partial implementation of nextcloud --- roles/nextcloud/tasks/main.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 roles/nextcloud/tasks/main.yml (limited to 'roles/nextcloud/tasks') diff --git a/roles/nextcloud/tasks/main.yml b/roles/nextcloud/tasks/main.yml new file mode 100644 index 0000000..69ffb87 --- /dev/null +++ b/roles/nextcloud/tasks/main.yml @@ -0,0 +1,38 @@ + +# nextcloud ~~ roles/nextcloud/tasks/main.yml +# nextcloud setup + +--- + +- name: install nextcloud + package: name=nextcloud state=present + +- name: generate nextcloud httpd configuration + template: + src: nextcloud.conf.httpd.j2 + dest: /etc/httpd.d/nextcloud.conf + owner: "{{ user_root }}" + group: "{{ group_root }}" + 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 + +- name: copy configuration for domain name and tls in chroot + shell: | + mkdir -p /var/www/etc/ssl + install -m 444 -o root -g bin /etc/resolv.conf /var/www/etc + install -m 444 -o root -g bin /etc/ssl/cert.pem /etc/ssl/openssl.cnf /var/www/etc/ssl/ + +- name: ensure php-fpm is restarted and enabled + service: + name: php73_fpm + state: restarted + enabled: true -- cgit v1.2.3