-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yaml
76 lines (71 loc) · 1.84 KB
/
playbook.yaml
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
- name: Setup certbot
hosts: vps
become: true
vars:
certbot_install_method: snap
certbot_auto_renew: true
certbot_auto_renew_user: "root"
certbot_auto_renew_hour: "3"
certbot_auto_renew_minute: "30"
certbot_auto_renew_options: "--quiet"
certbot_admin_email: admin@encamy.com
certbot_create_if_missing: true
certbot_create_method: standalone
certbot_create_command: "{{ certbot_script }} certonly --standalone --noninteractive --agree-tos --email {{ cert_item.email | default(certbot_admin_email) }} -d {{ cert_item.domains | join(',') }}"
certbot_certs:
- email: admin@encamy.com
webroot: "/var/www/html"
domains:
- de.encamy.com
roles:
- prepare
- geerlingguy.certbot
- name: Setup docker
hosts: vps
become: true
vars:
docker_edition: 'ce'
docker_obsolete_packages:
- docker
- docker.io
- docker-engine
- podman-docker
- containerd
- runc
docker_service_manage: true
docker_service_state: started
docker_service_enabled: true
docker_restart_handler_state: restarted
docker_install_compose_plugin: true
docker_compose_package: docker-compose-plugin
docker_compose_package_state: present
roles:
- geerlingguy.docker
- name: Setup nginx
hosts: vps
become: true
vars:
nginx_hostname: de.encamy.com
nginx_directory: nginx-server
nginx_image: "nginx:1.27.2"
nginx_upstream_website: www.omfgdogs.com
roles:
- nginx
- name: Setup x-ui
hosts: vps
become: true
vars:
xui_image: "ghcr.io/alireza0/x-ui:1.8.6"
xui_hostname: de.encamy.com
xui_directory: x-ui
roles:
- xray
- name: Setup socks5 proxy
hosts: vps
become: true
vars:
socks_image: "serjs/go-socks5-proxy:latest"
socks_directory: socks5
socks_port: 47261
roles:
- socks5proxy