mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-08 11:47:36 +01:00
5eed874199
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/716 This patch makes us use more fully-qualified container image names (either prefixed with docker.io/ or with localhost/). The latter happens when self-building is enabled. We've recently had issues where if an image was removed manually and the service was restarted (making `docker run` fetch it from Docker Hub, etc.), we'd end up with a pulled image, even though we're aiming for a self-built one. Re-running the playbook would then not do a rebuild, because: - the image with that name already exists (even though it's something else) - we sometimes had conditional logic where we'd build only if the git repo changed By explicitly changing the name of the images (prefixing with localhost/), we avoid such confusion and the possibility that we'd automatically pul something which is not what we expect. Also, I've removed that condition where building would happen on git changes only. We now always build (unless an image with that name already exists). We just force-build when the git repo changes.
46 lines
1.7 KiB
YAML
46 lines
1.7 KiB
YAML
# Whether dynamic dns is enabled
|
|
matrix_dynamic_dns_enabled: true
|
|
|
|
# The dynamic dns daemon interval
|
|
matrix_dynamic_dns_daemon_interval: '300'
|
|
|
|
# The docker container to use when in mode
|
|
matrix_dynamic_dns_docker_image: '{{ matrix_dynamic_dns_docker_image_name_prefix }}linuxserver/ddclient:v3.9.1-ls45'
|
|
|
|
matrix_dynamic_dns_docker_image_name_prefix: "{{ 'localhost/' if matrix_dynamic_dns_container_image_self_build else 'docker.io/' }}"
|
|
|
|
# The image to force pull
|
|
matrix_dynamic_dns_docker_image_force_pull: "{{ matrix_dynamic_dns_docker_image.endswith(':latest') }}"
|
|
|
|
# List of extra arguments to pass to the ontainer mode
|
|
matrix_dynamic_dns_container_extra_arguments: []
|
|
|
|
# List of wanted services when running in mode
|
|
matrix_dynamic_dns_systemd_wanted_services_list: []
|
|
|
|
# List of required services when running in mode
|
|
matrix_dynamic_dns_systemd_required_services_list: ['docker.service']
|
|
|
|
# Build the container from source when running in mode
|
|
matrix_dynamic_dns_container_image_self_build: false
|
|
|
|
# Config paths
|
|
matrix_dynamic_dns_base_path: "{{ matrix_base_data_path }}/dynamic-dns"
|
|
matrix_dynamic_dns_config_path: "{{ matrix_dynamic_dns_base_path }}/config"
|
|
matrix_dynamic_dns_docker_src_files_path: "{{ matrix_dynamic_dns_base_path }}/docker-src"
|
|
|
|
# Holds the configurations (the domains to update DNS for, the providers they use, etc.)
|
|
#
|
|
# Example:
|
|
# matrix_dynamic_dns_domain_configurations:
|
|
# - provider: domains.google.com
|
|
# protocol: dyndn2
|
|
# username: XXXXXXXXXXXXXXXX
|
|
# password: XXXXXXXXXXXXXXXX
|
|
# domain: "{{ matrix_domain }}"
|
|
matrix_dynamic_dns_domain_configurations: []
|
|
|
|
# Config options
|
|
matrix_dynamic_dns_additional_configuration_blocks: []
|
|
matrix_dynamic_dns_use: "web"
|