Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
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'}