Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

37 líneas
1.3 KiB

  1. #jinja2: lstrip_blocks: "True"
  2. [Unit]
  3. Description=Matrix Dynamic DNS
  4. {% for service in matrix_dynamic_dns_systemd_required_services_list %}
  5. Requires={{ service }}
  6. After={{ service }}
  7. {% endfor %}
  8. {% for service in matrix_dynamic_dns_systemd_wanted_services_list %}
  9. Wants={{ service }}
  10. {% endfor %}
  11. DefaultDependencies=no
  12. [Service]
  13. Type=simple
  14. Environment="HOME={{ matrix_systemd_unit_home_path }}"
  15. ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-dynamic-dns 2>/dev/null'
  16. ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-dynamic-dns 2>/dev/null'
  17. ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-dynamic-dns \
  18. --log-driver=none \
  19. --network={{ matrix_docker_network }} \
  20. -e PUID={{ matrix_user_uid }} \
  21. -e PGID={{ matrix_user_gid }} \
  22. -v {{ matrix_dynamic_dns_config_path }}:/config:z \
  23. {% for arg in matrix_dynamic_dns_container_extra_arguments %}
  24. {{ arg }} \
  25. {% endfor %}
  26. {{ matrix_dynamic_dns_docker_image }}
  27. ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-dynamic-dns 2>/dev/null'
  28. ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-dynamic-dns 2>/dev/null'
  29. Restart=always
  30. RestartSec=30
  31. SyslogIdentifier=matrix-dynamic-dns
  32. [Install]
  33. WantedBy=multi-user.target