Skip to content

Commit 60577c5

Browse files
Merge pull request #234 from RanabirChakraborty/AMW-396
Use tags to decorate the role workflow
2 parents 5e71b87 + b79aa2e commit 60577c5

File tree

3 files changed

+31
-7
lines changed

3 files changed

+31
-7
lines changed

roles/activemq/tasks/configure_broker.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@
4848
when: activemq_network_check_enabled
4949

5050
- name: Create user and roles
51-
ansible.builtin.include_tasks: user_roles.yml
51+
ansible.builtin.include_tasks:
52+
file: user_roles.yml
53+
apply:
54+
tags:
55+
- users
5256
when: activemq_users | length > 0
5357
tags:
5458
- users

roles/activemq/tasks/main.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,30 @@
4949
delegate_to: localhost
5050

5151
- name: Include firewall config tasks
52-
ansible.builtin.include_tasks: firewalld.yml
52+
ansible.builtin.include_tasks:
53+
file: firewalld.yml
54+
apply:
55+
tags:
56+
- firewall
5357
when: activemq_configure_firewalld
5458
tags:
5559
- firewall
5660

5761
- name: Include install tasks
58-
ansible.builtin.include_tasks: install.yml
62+
ansible.builtin.include_tasks:
63+
file: install.yml
64+
apply:
65+
tags:
66+
- install
5967
tags:
6068
- install
6169

6270
- name: Include systemd tasks
63-
ansible.builtin.include_tasks: systemd.yml
71+
ansible.builtin.include_tasks:
72+
file: systemd.yml
73+
apply:
74+
tags:
75+
- systemd
6476
tags:
6577
- systemd
6678

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
---
2-
- name: Include systemd tasks
3-
ansible.builtin.include_tasks: systemd.yml
2+
- name: Include install tasks
3+
ansible.builtin.include_tasks:
4+
file: systemd.yml
5+
apply:
6+
tags:
7+
- systemd
48
tags:
59
- systemd
610

711
- name: Include uninstall tasks
8-
ansible.builtin.include_tasks: uninstall.yml
12+
ansible.builtin.include_tasks:
13+
file: uninstall.yml
14+
apply:
15+
tags:
16+
- uninstall
917
tags:
1018
- uninstall

0 commit comments

Comments
 (0)