forked from adeverteuil/ansible-playbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-nextcloud.yml
More file actions
34 lines (31 loc) · 919 Bytes
/
deploy-nextcloud.yml
File metadata and controls
34 lines (31 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
- hosts: nextcloud*
- hosts: mysql*
tasks:
- name: create the nextcloud database
mysql_db:
name: nextcloud
state: present
- name: create the nextcloud database user
mysql_user:
name: nextcloud
host: "{{ nextcloud_db_user_host }}"
password: "{{ nextcloud_db_password }}"
priv: "nextcloud.*:ALL"
state: present
- hosts: nextcloud*
roles:
- {role: webserver, tags: [webserver]}
- {role: nextcloud, tags: [nextcloud]}
- {role: prometheus-apache-exporter, tags: [apache_exporter]}
- hosts: nginx.private.deverteuil.net
roles:
- {role: reverse-proxy, tags: [reverse-proxy]}
vars:
nginx_proxy_servers:
- name: nextcloud.deverteuil.net
proxy_pass: "{{ hostvars['nextcloud.private.deverteuil.net']['ansible_eth0']['ipv4']['address'] }}"
ssl: yes
additional_lines:
- proxy_buffering off;
- client_max_body_size 0;