Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

21 lignes
794 B

  1. # SPDX-FileCopyrightText: 2024 Slavi Pantaleev
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Fail if required Pantalaimon variables are undefined
  6. ansible.builtin.fail:
  7. msg: "The `{{ item }}` variable must be defined and have a non-null value."
  8. with_items:
  9. - "matrix_pantalaimon_homeserver_url"
  10. when: "vars[item] == '' or vars[item] is none"
  11. - name: (Deprecation) Catch and report renamed Pantalaimon variables
  12. ansible.builtin.fail:
  13. msg: >-
  14. The variable `{{ item.old }}` is deprecated. Please use `{{ item.new }}` instead.
  15. when: "lookup('ansible.builtin.varnames', ('^' + item.old + '$'), wantlist=True) | length > 0"
  16. with_items:
  17. - {'old': 'matrix_pantalaimon_docker_image_name_prefix', 'new': 'matrix_pantalaimon_docker_image_registry_prefix'}