From 2c3a3f9f89d5876302a0f9b9654bff63482ca24b Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Wed, 23 Oct 2024 20:01:54 +0200 Subject: [PATCH] [tutorial 067] Jinja calculation for an hidden variable with a potential inaccessible varible --- firefox/55-proxy_dns_socks5.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/firefox/55-proxy_dns_socks5.yml b/firefox/55-proxy_dns_socks5.yml index c228dd4..0f86657 100644 --- a/firefox/55-proxy_dns_socks5.yml +++ b/firefox/55-proxy_dns_socks5.yml @@ -2,3 +2,17 @@ proxy_dns_socks5: description: Use proxy DNS when using SOCKS v5 default: false + disabled: + jinja: | + {% if socks_version is not defined %} + the proxy mode is not manual + {% elif socks_version == 'v4' %} + socks version is v4 + {% endif %} + params: + socks_version: + variable: manual.socks_proxy.version + propertyerror: false + description: | + if "firefox.proxy_mode" is not "Manual proxy configuration" + or "firefox.manual.socks_proxy.version" is "v4"