Created
January 11, 2021 23:27
-
-
Save Craigson/9ab44bac85a06d2ea37facbb69fd1c26 to your computer and use it in GitHub Desktop.
launch_syntropy_agent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| # tasks file for launch_syntropy_agent | |
| - include_vars: ../../../secrets.yaml | |
| - debug: | |
| msg: creating "{{agent_name}}" | |
| - name: Launch Syntropy Agent | |
| docker_container: | |
| image: syntropynet/agent:stable | |
| name: syntropynet-agent | |
| capabilities: | |
| - NET_ADMIN | |
| - SYS_MODULE | |
| env: | |
| SYNTROPY_API_KEY: "{{api_key}}" | |
| SYNTROPY_NETWORK_API: "docker" | |
| SYNTROPY_AGENT_NAME: "{{agent_name}}" | |
| SYNTROPY_PROVIDER: "{{agent_provider}}" | |
| SYNTROPY_TAGS: "{{agent_tags}}" | |
| SYNTROPY_SERVICES_STATUS: "false" # default is false | |
| restart_policy: always | |
| network_mode: "host" | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock:ro | |
| devices: | |
| - "/dev/net/tun:/dev/net/tun" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment