Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

25 righe
1.0 KiB

  1. ---
  2. - name: Fail if no configurations specified
  3. ansible.builtin.fail:
  4. msg: >-
  5. You need to define at least one configuration in `matrix_dynamic_dns_domain_configurations` for using matrix-dynamic-dns.
  6. when: "matrix_dynamic_dns_domain_configurations | length == 0"
  7. - name: Fail if required settings not defined in configuration blocks
  8. ansible.builtin.fail:
  9. msg: >-
  10. One of the configurations in matrix_dynamic_dns_domain_configurations is missing a required key (domain, provider, protocol).
  11. when: "'domain' not in configuration or 'provider' not in configuration or 'protocol' not in configuration"
  12. with_items: "{{ matrix_dynamic_dns_domain_configurations }}"
  13. loop_control:
  14. loop_var: configuration
  15. - name: Fail if required mautrix-dynamic-dns settings not defined
  16. ansible.builtin.fail:
  17. msg: >-
  18. You need to define a required configuration setting (`{{ item.name }}`).
  19. when: "item.when | bool and vars[item.name] == ''"
  20. with_items:
  21. - {'name': 'matrix_dynamic_dns_container_network', when: true}