ansible-playbook.yml 575 B

12345678910111213141516171819
  1. - hosts: [some-host]
  2. become: true
  3. vars:
  4. or_port: 42218 # random
  5. pt_port: 51804 # random
  6. contact_info: admin@optional.com
  7. tasks:
  8. - docker_container:
  9. name: tor_obfs4_bridge
  10. image: fphammerle/tor-obfs4-bridge@sha256:80bd5004b44abb91f6c6385bd46fb5fe18d6baf6f5717253e2fa0b7cd8d52b5e
  11. env:
  12. OR_PORT: '{{ or_port }}'
  13. PT_PORT: '{{ pt_port }}'
  14. CONTACT_INFO: '{{ contact_info }}'
  15. ports:
  16. - '{{ or_port }}:{{ or_port }}'
  17. - '{{ pt_port }}:{{ pt_port }}'
  18. memory: 128M
  19. restart_policy: unless-stopped