--- - name: Chisel Client - Server playbook hosts: all become: true # # # # @author Stéphane Gratias (2021). # # pre_tasks: # - name: Start the tempory chisel server in docker # community.docker.docker_container: # name: chisel-server # image: jpillora/chisel # network_mode: host # command: ["server", "--socks5", "--reverse", "--port", "8080"] # published_ports: # - "8080:8080" # - "8081:1080" # when: "{{ chisel_server }} is true" # tags: # - chisel # - test roles: # manage docker-compose@dev systemd unit file - { role: justin_p.chisel, tags: chisel } tasks: # Need to install proxychains - name: Change settings in chisel and proxychains conf files ansible.builtin.lineinfile: path: "{{ item.path }}" regexp: "{{ item.regexp }}" line: "{{ item.line }}" loop: "{{ chisel_proxychains_conf }}" when: "{{ chisel_server|default(false) }} is true" tags: chisel