matrix-docker-ansible-deploy/roles/matrix-dynamic-dns/tasks/main.yml

34 lines
1.1 KiB
YAML
Raw Normal View History

2020-10-13 23:18:38 +00:00
- import_tasks: "{{ role_path }}/tasks/init.yml"
tags:
- always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: "run_setup|bool and matrix_dynamic_dns_enabled|bool"
tags:
- setup-all
- setup-dynamic-dns
2020-10-17 04:21:58 +00:00
- import_tasks: "{{ role_path }}/tasks/install_dhcp.yml"
when: "run_setup|bool and matrix_dynamic_dns_enabled|bool and matrix_dynamic_dns_mode == 'dhcp'"
tags:
- setup-all
- setup-dynamic-dns
- import_tasks: "{{ role_path }}/tasks/uninstall_dhcp.yml"
when: "run_setup|bool and not matrix_dynamic_dns_enabled|bool and matrix_dynamic_dns_mode == 'dhcp'"
2020-10-13 23:18:38 +00:00
tags:
- setup-all
- setup-dynamic-dns
2020-10-17 04:21:58 +00:00
- import_tasks: "{{ role_path }}/tasks/install_daemon.yml"
when: "run_setup|bool and matrix_dynamic_dns_enabled|bool and matrix_dynamic_dns_mode == 'daemon'"
2020-10-13 23:18:38 +00:00
tags:
- setup-all
- setup-dynamic-dns
2020-10-17 04:21:58 +00:00
- import_tasks: "{{ role_path }}/tasks/uninstall_daemon.yml"
when: "run_setup|bool and not matrix_dynamic_dns_enabled|bool and matrix_dynamic_dns_mode == 'daemon'"
2020-10-13 23:18:38 +00:00
tags:
- setup-all
- setup-dynamic-dns