-
Notifications
You must be signed in to change notification settings - Fork 6
/
nextcloud.yml
50 lines (44 loc) · 1.56 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
- name: Nextcloud
hosts: all
become: yes
become_method: sudo
vars_files:
- vars/main.yml
vars_prompt:
- name: 'webs_selection'
prompt: "\nWhich Web-Server do you want to use? [ 1/2 ] \n\n
1: Apache\n
2: Nginx\n"
private: no
default: 1
vars:
webs_select:
'1': 'apache'
'2': 'nginx'
infrastructure_select:
'1': 'LAMP'
'2': 'LNMP'
nextcloud_webs: "{{webs_select[webs_selection]}}"
w9panel_webs: "{{webs_select[webs_selection]}}"
w9panel_set_infrastructure: "{{infrastructure_select[webs_selection]}}"
w9panel_set_apps:
- Nextcloud
pre_tasks:
- debug:
msg: NextCloud will be installed on {{w9panel_set_infrastructure}}, OS is {{ansible_distribution}}
roles:
- {role: role_common, tags: "role_common"}
- {role: role_cloud, tags: "role_cloud"}
- {role: role_apache, when: nextcloud_webs == 'apache', tags: "role_apache"}
- {role: role_nginx, when: nextcloud_webs == 'nginx', tags: "role_nginx"}
- {role: role_mysql, tags: "role_mysql"}
- {role: role_php, tags: "role_php"}
- {role: role_inotify_watch, tags: "role_inotify_watch"}
- {role: role_docker, tags: "role_docker"}
- {role: role_9panel, tags: "role_9panel"}
- {role: role_redis, tags: "role_redis"}
- {role: role_docker, tags: "role_docker"}
- {role: nextcloud, tags: "nextcloud"}
- {role: role_init, tags: "role_init"}
- {role: role_preend, tags: "role_preend"}
- {role: role_end, tags: "role_end"}