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 lines
601 B

  1. ---
  2. - name: Fail if required settings not defined
  3. fail:
  4. msg: >-
  5. You need to define a required configuration setting (`{{ item }}`).
  6. when: "vars[item] == ''"
  7. with_items:
  8. - "matrix_dynamic_dns_username"
  9. - "matrix_dynamic_dns_password"
  10. - "matrix_domain"
  11. - "matrix_dynamic_dns_provider"
  12. - "matrix_dynamic_dns_mode"
  13. - name: Fail if dynamic dns mode is incorrect
  14. fail:
  15. msg: >-
  16. matrix_dynamic_dns_mode needs to be set to 'daemon' or 'startup'
  17. when: "matrix_dynamic_dns_enabled and matrix_dynamic_dns_mode != 'daemon' and matrix_dynamic_dns_mode != 'dhcp'"