--- - 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: - name: Set up config file better ... ansible.builtin.lineinfile: path: /etc/chisel/chisel-server.conf regexp: '^# SOCK5=--sock5' line: "SOCK5=--sock5" tags: chisel