Skip to content

Commit fd88f4c

Browse files
vbotkaalessfg
authored andcommitted
Tags added to main.yml (#186)
* Tags added to each import_tasks in main.yml
1 parent 27d9462 commit fd88f4c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tasks/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
- import_tasks: prerequisites/install-prerequisites.yml
3+
tags: nginx_prerequisites
34

45
- import_tasks: keys/apt-key.yml
56
when:
@@ -8,6 +9,7 @@
89
or nginx_amplify_enable
910
or nginx_controller_enable
1011
or nginx_unit_enable
12+
tags: nginx_aptkey
1113

1214
- import_tasks: keys/rpm-key.yml
1315
when:
@@ -17,46 +19,57 @@
1719
or nginx_amplify_enable
1820
or nginx_controller_enable
1921
or nginx_unit_enable
22+
tags: nginx_rpmkey
2023

2124
- import_tasks: keys/apk-key.yml
2225
when: ansible_os_family == "Alpine"
26+
tags: nginx_apkkey
2327

2428
- name: "(Install: Debian/Ubuntu/CentOS/RedHat/FreeBSD) Install NGINX"
2529
block:
2630

2731
- import_tasks: opensource/install-oss.yml
2832
when: nginx_type == "opensource"
33+
tags: nginx_install_oss
2934

3035
- import_tasks: plus/install-plus.yml
3136
when: nginx_type == "plus"
37+
tags: nginx_install_plus
3238

3339
- import_tasks: conf/cleanup-config.yml
3440
when: nginx_cleanup_config | bool
41+
tags: nginx_cleanup_config
3542

3643
- import_tasks: conf/upload-config.yml
3744
when: nginx_main_upload_enable
3845
or nginx_http_upload_enable
3946
or nginx_stream_upload_enable
4047
or nginx_html_upload_enable
4148
or nginx_ssl_upload_enable
49+
tags: nginx_upload_config
4250

4351
- import_tasks: conf/template-config.yml
4452
when: nginx_main_template_enable
4553
or nginx_http_template_enable
4654
or nginx_stream_template_enable
4755
or nginx_rest_api_enable
56+
tags: nginx_template_config
4857

4958
- import_tasks: conf/setup-status.yml
5059
when: nginx_status_enable | bool
60+
tags: nginx_setup_status
5161

5262
- import_tasks: modules/install-modules.yml
5363
when: true in nginx_modules.values()
64+
tags: nginx_install_modules
5465

5566
- import_tasks: conf/debug-output.yml
5667
when: nginx_debug_output | bool
68+
tags: nginx_debug_output
5769

5870
- import_tasks: plus/delete-license.yml
5971
when: nginx_type == "plus" and nginx_delete_license
72+
tags: nginx_delete_license
6073

6174
when: nginx_enable | bool
6275

@@ -65,6 +78,7 @@
6578
- nginx_amplify_enable | bool
6679
- nginx_amplify_api_key is defined
6780
- nginx_amplify_api_key | length > 0
81+
tags: nginx_install_amplify
6882

6983
- import_tasks: controller/install-controller.yml
7084
when:
@@ -73,6 +87,8 @@
7387
- nginx_controller_api_key | length > 0
7488
- nginx_controller_api_endpoint is defined
7589
- nginx_controller_api_endpoint | length > 0
90+
tags: nginx_install_controller
7691

7792
- import_tasks: unit/install-unit.yml
7893
when: nginx_unit_enable | bool
94+
tags: nginx_install_unit

0 commit comments

Comments
 (0)