Tags added to main.yml (#186)

* Tags added to each import_tasks in main.yml
This commit is contained in:
Vladimir Botka 2019-11-19 15:47:29 +01:00 committed by Alessandro Fael Garcia
parent 27d94628bd
commit fd88f4cb22

View File

@ -1,5 +1,6 @@
--- ---
- import_tasks: prerequisites/install-prerequisites.yml - import_tasks: prerequisites/install-prerequisites.yml
tags: nginx_prerequisites
- import_tasks: keys/apt-key.yml - import_tasks: keys/apt-key.yml
when: when:
@ -8,6 +9,7 @@
or nginx_amplify_enable or nginx_amplify_enable
or nginx_controller_enable or nginx_controller_enable
or nginx_unit_enable or nginx_unit_enable
tags: nginx_aptkey
- import_tasks: keys/rpm-key.yml - import_tasks: keys/rpm-key.yml
when: when:
@ -17,21 +19,26 @@
or nginx_amplify_enable or nginx_amplify_enable
or nginx_controller_enable or nginx_controller_enable
or nginx_unit_enable or nginx_unit_enable
tags: nginx_rpmkey
- import_tasks: keys/apk-key.yml - import_tasks: keys/apk-key.yml
when: ansible_os_family == "Alpine" when: ansible_os_family == "Alpine"
tags: nginx_apkkey
- name: "(Install: Debian/Ubuntu/CentOS/RedHat/FreeBSD) Install NGINX" - name: "(Install: Debian/Ubuntu/CentOS/RedHat/FreeBSD) Install NGINX"
block: block:
- import_tasks: opensource/install-oss.yml - import_tasks: opensource/install-oss.yml
when: nginx_type == "opensource" when: nginx_type == "opensource"
tags: nginx_install_oss
- import_tasks: plus/install-plus.yml - import_tasks: plus/install-plus.yml
when: nginx_type == "plus" when: nginx_type == "plus"
tags: nginx_install_plus
- import_tasks: conf/cleanup-config.yml - import_tasks: conf/cleanup-config.yml
when: nginx_cleanup_config | bool when: nginx_cleanup_config | bool
tags: nginx_cleanup_config
- import_tasks: conf/upload-config.yml - import_tasks: conf/upload-config.yml
when: nginx_main_upload_enable when: nginx_main_upload_enable
@ -39,24 +46,30 @@
or nginx_stream_upload_enable or nginx_stream_upload_enable
or nginx_html_upload_enable or nginx_html_upload_enable
or nginx_ssl_upload_enable or nginx_ssl_upload_enable
tags: nginx_upload_config
- import_tasks: conf/template-config.yml - import_tasks: conf/template-config.yml
when: nginx_main_template_enable when: nginx_main_template_enable
or nginx_http_template_enable or nginx_http_template_enable
or nginx_stream_template_enable or nginx_stream_template_enable
or nginx_rest_api_enable or nginx_rest_api_enable
tags: nginx_template_config
- import_tasks: conf/setup-status.yml - import_tasks: conf/setup-status.yml
when: nginx_status_enable | bool when: nginx_status_enable | bool
tags: nginx_setup_status
- import_tasks: modules/install-modules.yml - import_tasks: modules/install-modules.yml
when: true in nginx_modules.values() when: true in nginx_modules.values()
tags: nginx_install_modules
- import_tasks: conf/debug-output.yml - import_tasks: conf/debug-output.yml
when: nginx_debug_output | bool when: nginx_debug_output | bool
tags: nginx_debug_output
- import_tasks: plus/delete-license.yml - import_tasks: plus/delete-license.yml
when: nginx_type == "plus" and nginx_delete_license when: nginx_type == "plus" and nginx_delete_license
tags: nginx_delete_license
when: nginx_enable | bool when: nginx_enable | bool
@ -65,6 +78,7 @@
- nginx_amplify_enable | bool - nginx_amplify_enable | bool
- nginx_amplify_api_key is defined - nginx_amplify_api_key is defined
- nginx_amplify_api_key | length > 0 - nginx_amplify_api_key | length > 0
tags: nginx_install_amplify
- import_tasks: controller/install-controller.yml - import_tasks: controller/install-controller.yml
when: when:
@ -73,6 +87,8 @@
- nginx_controller_api_key | length > 0 - nginx_controller_api_key | length > 0
- nginx_controller_api_endpoint is defined - nginx_controller_api_endpoint is defined
- nginx_controller_api_endpoint | length > 0 - nginx_controller_api_endpoint | length > 0
tags: nginx_install_controller
- import_tasks: unit/install-unit.yml - import_tasks: unit/install-unit.yml
when: nginx_unit_enable | bool when: nginx_unit_enable | bool
tags: nginx_install_unit