Fix examples

This commit is contained in:
itdoginfo
2024-05-06 14:05:03 +03:00
parent db0d06408a
commit aae9c50f10
2 changed files with 22 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ Wireguard, only domains, stubby, Russia, acces from wg network, host 192.168.1.1
remote_user: root
roles:
- domain-routing-openwrt
- itdoginfo.domain_routing_openwrt
vars:
tunnel: wg
@@ -93,12 +93,22 @@ Sing-box, stubby, Russia
remote_user: root
roles:
- domain-routing-openwrt
- itdoginfo.domain_routing_openwrt
vars:
tunnel: singbox
dns_encrypt: stubby
country: russia-inside
tasks:
- name: sing-box config
template:
src: "templates/openwrt-sing-box-json.j2"
dest: "/etc/sing-box/config.json"
mode: 0644
notify:
- Restart sing-box
- Restart network
```
License

View File

@@ -81,6 +81,16 @@ Sing-box, stubby, Russia
tunnel: singbox
dns_encrypt: stubby
country: russia-inside
tasks:
- name: sing-box config
template:
src: "templates/openwrt-sing-box-json.j2"
dest: "/etc/sing-box/config.json"
mode: 0644
notify:
- Restart sing-box
- Restart network
```
В inventory файле роутер обязательно должен быть в группе `[openwrt]`