From 94c05bed5f22769a5a8c2589e70f64a9afe6dbec Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sat, 7 Sep 2024 19:07:00 +0200 Subject: [PATCH] [tutorial 050] A variable in avanced mode --- firefox/50-prompt_authentication.yml | 7 +++++++ firefox/55-proxy_dns_socks5.yml | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 firefox/50-prompt_authentication.yml create mode 100644 firefox/55-proxy_dns_socks5.yml diff --git a/firefox/50-prompt_authentication.yml b/firefox/50-prompt_authentication.yml new file mode 100644 index 00000000..7138e222 --- /dev/null +++ b/firefox/50-prompt_authentication.yml @@ -0,0 +1,7 @@ +--- +prompt_authentication: + description: Prompt for authentication if password is saved + default: true + disabled: + variable: _.proxy_mode + when: No proxy diff --git a/firefox/55-proxy_dns_socks5.yml b/firefox/55-proxy_dns_socks5.yml new file mode 100644 index 00000000..4e3bef90 --- /dev/null +++ b/firefox/55-proxy_dns_socks5.yml @@ -0,0 +1,18 @@ +--- +proxy_dns_socks5: + description: Use proxy DNS when using SOCKS v5 + default: false + mode: advanced + 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"