From aae9c50f10dee2e51800c8742a62ce87eecadc3c Mon Sep 17 00:00:00 2001 From: itdoginfo Date: Mon, 6 May 2024 14:05:03 +0300 Subject: [PATCH] Fix examples --- README.EN.md | 14 ++++++++++++-- README.md | 10 ++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/README.EN.md b/README.EN.md index 4b16213..285ff16 100644 --- a/README.EN.md +++ b/README.EN.md @@ -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 diff --git a/README.md b/README.md index b237f94..3473f57 100644 --- a/README.md +++ b/README.md @@ -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]`