-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlutece.yml
114 lines (101 loc) · 3.36 KB
/
lutece.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
# change ansible.cfg ask_pass to true is needed
- hosts: raspberry-lutece
become: true
remote_user: "{{ default_user }}"
gather_facts: "no"
vars_files:
- ./secrets.yml
pre_tasks:
- local_action: command ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no {{ default_user }}@{{ ansible_host }} "echo success"
register: default_connection_attempt
ignore_errors: "yes"
- set_fact:
default_connection_failed: "{{ default_connection_attempt.rc != 0 }}"
- debug:
msg: "Default connection for {{ ansible_host }} disabled ? {{ default_connection_failed }}"
roles:
- role: create_ssh_user
users:
- "{{ server_user }}"
when: not default_connection_failed
- name: Install shared configuration
import_playbook: shared_install.yml
vars:
runnig_hosts: raspberry-lutece
open_dns_port: "yes"
- hosts: raspberry-lutece
become: true
remote_user: "{{ server_user.name }}"
vars:
- disk_mount_point: /media/Lutece_1
vars_files:
- ./secrets.yml
roles:
- role: disks_setup
disks:
- mount_point: "{{ disk_mount_point }}"
disk_label: Lutece_1
- role: nextcloud_client
nextcloud_user: "{{ server_user.name }}"
nextcloud_group: "{{ server_user.group }}"
nextcloud_folder: "{{ disk_mount_point }}/Nextcloud"
nextcloud_excluded_directories_path: "{{ disk_mount_point }}/.nextcloud_excluded_directories"
nextcloud_excluded_directories:
- Autres
- Documents
- "Dossier appartement"
- Images
- Frameo
- Livres_numériques
- "Photos à traiter"
- Programmation
- "Remote Expertise Technology"
tags: nextcloud
- role: haelle.certbot
certbot_install_method: snap
certbot_create_if_missing: "yes"
certbot_create_method: standalone
certbot_admin_email: "{{ certbot_email }}"
certbot_certs:
- domains:
- "trou-noir.alxs.fr"
- domains:
- "plex.alxs.fr"
- domains:
- "download.alxs.fr"
- domains:
- "photo.alxs.fr"
- domains:
- "cloud.alxs.fr"
tags:
- certbot
- pi-hole
- plex
- transmission
- photoprism
- reverse_proxy
- role: pi_hole
docker_user: "{{ server_user.name }}"
tags: pi-hole
- role: plex
plex_root: "{{ disk_mount_point }}/Plex"
plex_database: "{{ disk_mount_point }}/Plex/database"
plex_transcode_temp_dir: "{{ disk_mount_point }}/Plex/transcode"
plex_medias: "{{ disk_mount_point }}/medias"
docker_user: "{{ server_user.name }}"
tags: plex
- role: transmission
docker_user: "{{ server_user.name }}"
transmission_data: "{{ disk_mount_point }}/medias"
transmission_directory: "{{ disk_mount_point }}/medias/transmission-home"
transmission_rpc_login: "{{ transmission_login }}"
transmission_rpc_password: "{{ transmission_password}}"
tags: transmission
- role: photoprism
docker_user: '{{ server_user.name }}'
photoprism_directory: "{{ disk_mount_point }}/photoprism"
photoprism_data: "{{ disk_mount_point }}/Nextcloud/Photos"
photoprism_admin_password: "{{ photoprism_password }}"
photoprism_mariadb_password: "{{ photoprism_db_password }}"
tags: photoprism