mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-05-17 09:01:27 +03:00
3d0d5d4cd5
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>
27 lines
1.1 KiB
YAML
27 lines
1.1 KiB
YAML
# SPDX-FileCopyrightText: 2021 Yannick Goossens
|
|
# SPDX-FileCopyrightText: 2022 Slavi Pantaleev
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
---
|
|
|
|
- name: Fail if there's not at least 1 client
|
|
ansible.builtin.fail:
|
|
msg: >-
|
|
You need at least 1 client in the matrix_bot_go_neb_clients block.
|
|
when: matrix_bot_go_neb_clients is not defined or matrix_bot_go_neb_clients[0] is not defined
|
|
|
|
- name: Fail if there's not at least 1 service
|
|
ansible.builtin.fail:
|
|
msg: >-
|
|
You need at least 1 service in the matrix_bot_go_neb_services block.
|
|
when: matrix_bot_go_neb_services is not defined or matrix_bot_go_neb_services[0] is not defined
|
|
|
|
- name: (Deprecation) Catch and report renamed matrix-bot-go-neb variables
|
|
ansible.builtin.fail:
|
|
msg: >-
|
|
The variable `{{ item.old }}` is deprecated. Please use `{{ item.new }}` instead.
|
|
when: "lookup('ansible.builtin.varnames', ('^' + item.old + '$'), wantlist=True) | length > 0"
|
|
with_items:
|
|
- {'old': 'matrix_bot_go_neb_container_image_force_pull', 'new': '<removed> (the new community.docker.docker_image_pull module handles this natively)'}
|