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.
 
 

34 lines
1.1 KiB

  1. - import_tasks: "{{ role_path }}/tasks/init.yml"
  2. tags:
  3. - always
  4. - import_tasks: "{{ role_path }}/tasks/validate_config.yml"
  5. when: "run_setup|bool and matrix_dynamic_dns_enabled|bool"
  6. tags:
  7. - setup-all
  8. - setup-dynamic-dns
  9. - import_tasks: "{{ role_path }}/tasks/install_dhcp.yml"
  10. when: "run_setup|bool and matrix_dynamic_dns_enabled|bool and matrix_dynamic_dns_mode == 'dhcp'"
  11. tags:
  12. - setup-all
  13. - setup-dynamic-dns
  14. - import_tasks: "{{ role_path }}/tasks/uninstall_dhcp.yml"
  15. when: "run_setup|bool and not matrix_dynamic_dns_enabled|bool and matrix_dynamic_dns_mode == 'dhcp'"
  16. tags:
  17. - setup-all
  18. - setup-dynamic-dns
  19. - import_tasks: "{{ role_path }}/tasks/install_daemon.yml"
  20. when: "run_setup|bool and matrix_dynamic_dns_enabled|bool and matrix_dynamic_dns_mode == 'daemon'"
  21. tags:
  22. - setup-all
  23. - setup-dynamic-dns
  24. - import_tasks: "{{ role_path }}/tasks/uninstall_daemon.yml"
  25. when: "run_setup|bool and not matrix_dynamic_dns_enabled|bool and matrix_dynamic_dns_mode == 'daemon'"
  26. tags:
  27. - setup-all
  28. - setup-dynamic-dns