Просмотр исходного кода

matrix-bridge-sms: switch to modern community.docker docker_image modules

Replaces `community.docker.docker_image` with the modern
`docker_image_pull` module. Drops the `ansible_version` compatibility
ladder and the now-redundant `_container_image_force_pull` variable
(the new pull module handles registry refresh natively via `pull: always`).

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5191.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
pull/4219/merge
Slavi Pantaleev 2 дней назад
Родитель
Сommit
d7ffb7a4c0
2 измененных файлов: 3 добавлений и 2 удалений
  1. +2
    -2
      roles/custom/matrix-bridge-sms/tasks/setup_install.yml
  2. +1
    -0
      roles/custom/matrix-bridge-sms/tasks/validate_config.yml

+ 2
- 2
roles/custom/matrix-bridge-sms/tasks/setup_install.yml Просмотреть файл

@@ -11,9 +11,9 @@
---

- name: Ensure matrix-sms-bridge image is pulled
community.docker.docker_image:
community.docker.docker_image_pull:
name: "{{ matrix_sms_bridge_container_image }}"
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
pull: always
register: matrix_sms_bridge_container_image_pull_result
retries: "{{ devture_playbook_help_container_retries_count }}"
delay: "{{ devture_playbook_help_container_retries_delay }}"


+ 1
- 0
roles/custom/matrix-bridge-sms/tasks/validate_config.yml Просмотреть файл

@@ -19,6 +19,7 @@
- {'old': 'matrix_sms_bridge_docker_image_registry_prefix_upstream', 'new': 'matrix_sms_bridge_container_image_registry_prefix_upstream'}
- {'old': 'matrix_sms_bridge_docker_image_registry_prefix_upstream_default', 'new': 'matrix_sms_bridge_container_image_registry_prefix_upstream_default'}
- {'old': 'matrix_sms_bridge_docker_image_tag', 'new': 'matrix_sms_bridge_container_image_tag'}
- {'old': 'matrix_sms_bridge_container_image_force_pull', 'new': '<removed> (the new community.docker.docker_image_pull module handles this natively)'}


- name: Fail if required matrix-bridge-sms settings not defined


Загрузка…
Отмена
Сохранить