-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.yml
39 lines (37 loc) · 879 Bytes
/
shell.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
---
- hosts: shell
gather_facts: False
tasks:
- name: install python 2
become: true
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
- hosts: shell
become: true
roles:
- shell
- hosts: shell
roles:
- role: caddy_ansible.caddy_ansible
vars_files:
- roles/shell/vars/config.yml
become: true
caddy_setcap: yes
caddy_systemd_capabilities_enabled: true
caddy_systemd_capabilities: "CAP_NET_BIND_SERVICE"
caddy_config: |
{{ shell_deploy_url }} {
proxy / localhost:8000 {
transparent
}
}
{{ web_shell_url }} {
root /srv/webshell
}
{{ websocket_proxy_url }} {
proxy / http://localhost:5999 {
websocket
}
tls {
alpn http/1.1
}
}