forked from ReinerNippes/nextcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextcloud.yml
executable file
·31 lines (27 loc) · 1.28 KB
/
nextcloud.yml
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
#!/usr/bin/env ansible-playbook
- name: 'install nextcloud'
hosts: nextcloud
become: true
roles:
- { role: prep_ufw, when: install_ufw == 'true' and (ansible_os_family == "Debian" or ansible_os_family == "Ubuntu") }
- prep_os
- prep_redis
- prep_nginx
- prep_php
- { role: prep_mariadb, when: (nc_db_type == 'mysql') and (nc_db_host == 'localhost') }
- { role: prep_postgres, when: (nc_db_type == 'pgsql') and (nc_db_host == 'localhost') }
- { role: prep_letsencrypt, when: ssl_certificate_type == 'letsencrypt' }
- { role: prep_selfssl, when: ssl_certificate_type == 'selfsigned' }
- { role: restic_backup, when: restic_repo != '' }
- prep_nextcloud
- { role: prep_talk, when: talk_install == 'true' }
- { role: prep_collabora, when: install_collabora == 'true' }
- { role: prep_onlyoffice, when: install_onlyoffice == 'true' }
- { role: nc_fail2ban, when: install_fail2ban == 'true' }
post_tasks:
- name: We are ready
debug:
msg:
- "Your Nextcloud at https://{{ fqdn }} is ready."
- "Login with user: {{ nc_admin }} and password: {{ nc_passwd }} "
- "Other secrets you'll find in the directory {{ credential_store }} "