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.
 
 

30 righe
1.2 KiB

  1. # SPDX-FileCopyrightText: 2020 - 2025 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2020 Scott Crossen
  3. #
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. ---
  6. - name: Fail if no matrix-dynamic-dns configurations specified
  7. ansible.builtin.fail:
  8. msg: >-
  9. You need to define at least one configuration in `ddclient_domain_configurations` for using matrix-dynamic-dns.
  10. when: "ddclient_domain_configurations | length == 0"
  11. - name: Fail if required matrix-dynamic-dns settings not defined in configuration blocks
  12. ansible.builtin.fail:
  13. msg: >-
  14. One of the configurations in ddclient_domain_configurations is missing a required key (domain, protocol).
  15. when: "'domain' not in configuration or 'protocol' not in configuration"
  16. with_items: "{{ ddclient_domain_configurations }}"
  17. loop_control:
  18. loop_var: configuration
  19. - name: Fail if required matrix-dynamic-dns settings not defined
  20. ansible.builtin.fail:
  21. msg: >-
  22. You need to define a required configuration setting (`{{ item.name }}`).
  23. when: "item.when | bool and lookup('vars', item.name, default='') | string | length == 0"
  24. with_items:
  25. - {'name': 'ddclient_container_network', when: true}