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.
 
 

20 line
868 B

  1. ---
  2. - name: Fail if required Conduit settings not defined
  3. ansible.builtin.fail:
  4. msg: >-
  5. You need to define a required configuration setting (`{{ item.name }}`).
  6. when: "item.when | bool and vars[item.name] == ''"
  7. with_items:
  8. - {'name': 'matrix_conduit_hostname', when: true}
  9. - {'name': 'matrix_conduit_container_network', when: true}
  10. - {'name': 'matrix_conduit_container_labels_internal_client_api_traefik_entrypoints', when: "{{ matrix_conduit_container_labels_internal_client_api_enabled }}"}
  11. - name: (Deprecation) Catch and report renamed Conduit variables
  12. ansible.builtin.fail:
  13. msg: >-
  14. The variable `{{ item.old }}` is deprecated. Please use `{{ item.new }}` instead.
  15. when: "item.old in vars"
  16. with_items:
  17. - {'old': 'matrix_conduit_container_image_name_prefix', 'new': 'matrix_conduit_docker_image_registry_prefix'}