diff --git a/chisel.yml b/chisel.yml index 25ed8ee..aa75581 100644 --- a/chisel.yml +++ b/chisel.yml @@ -18,6 +18,7 @@ path: "{{ item.path }}" regexp: "{{ item.regexp }}" state: "{{ item.state }}" + line: "{{ item.line|default(omit) }}" loop: "{{ chisel_proxychains_conf }}" when: "{{ chisel_server|default(false) }} is true" tags: chisel-server diff --git a/host_vars/scaleway_fr.yml b/host_vars/scaleway_fr.yml index f5fdcdf..7115a2a 100644 --- a/host_vars/scaleway_fr.yml +++ b/host_vars/scaleway_fr.yml @@ -139,18 +139,22 @@ chisel_proxychains_conf: - path: "/etc/chisel/{{ chisel_config_name }}" regexp: "^SOCK5=--socks5" state: present + line: "SOCK5=--socks5" # chisel enable reverse - path: "/etc/chisel/{{ chisel_config_name }}" regexp: "^PID=--reverse" state: present + line: "PID=--reverse" # chisel set up basic auth - path: "/etc/chisel/{{ chisel_config_name }}" regexp: "^AUTH=--auth {{ chisel_basic_auth }}" state: present + line: "AUTH=--auth {{ chisel_basic_auth }}" # proxychains replace socks4 to socks5 - path: "/etc/proxychains.conf" regexp: "^socks4 127.0.0.1 9050" state: "absent" - path: "/etc/proxychains.conf" regexp: "^socks5 {{ chisel_server_host }} 1080" - state: present \ No newline at end of file + state: present + line: "socks5 {{ chisel_server_host }} 1080" \ No newline at end of file