Skip to content

Commit 7fdb06d

Browse files
authored
Merge pull request #226 from the-real-cphillips/name_parameter_for_includes
[tasks] Include Names for `include_tasks`
2 parents a9b80e7 + 66d8809 commit 7fdb06d

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

tasks/main.yml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,44 @@
11
---
22

3-
- include_tasks: set-parse-version.yml
3+
- name: Set Facts for Datadog Agent Major Version
4+
include_tasks: set-parse-version.yml
45

5-
- include_tasks: pkg-debian.yml
6+
- name: Debian Install Tasks
7+
include_tasks: pkg-debian.yml
68
when: ansible_os_family == "Debian"
79

8-
- include_tasks: pkg-redhat.yml
10+
- name: RedHat Install Tasks
11+
include_tasks: pkg-redhat.yml
912
when: ansible_os_family == "RedHat"
1013

11-
- include_tasks: pkg-suse.yml
14+
- name: Suse Install Tasks
15+
include_tasks: pkg-suse.yml
1216
when: ansible_os_family == "Suse"
1317

14-
- include_tasks: pkg-windows.yml
18+
- name: Windows Install Tasks
19+
include_tasks: pkg-windows.yml
1520
when: ansible_os_family == "Windows"
1621

17-
- include_tasks: agent5-linux.yml
22+
- name: Linux Install Tasks (Agent 5)
23+
include_tasks: agent5-linux.yml
1824
when: datadog_agent_major_version|int == 5 and ansible_os_family != "Windows"
1925

20-
- include_tasks: agent-linux.yml
26+
- name: Linux Install Tasks
27+
include_tasks: agent-linux.yml
2128
when: datadog_agent_major_version|int > 5 and ansible_os_family != "Windows"
2229

23-
- include_tasks: agent-win.yml
30+
- name: Agent6 Install Tasks (Windows)
31+
include_tasks: agent-win.yml
2432
when: datadog_agent_major_version|int > 5 and ansible_os_family == "Windows"
2533

26-
- include_tasks: integration.yml
34+
- name: Integrations Tasks
35+
include_tasks: integration.yml
2736
when: datadog_integration is defined
2837

29-
- include_tasks: post_tasks/*.yml
38+
- name: Post Tasks
39+
include_tasks: post_tasks/*.yml
3040
when: post_tasks is defined
3141

32-
- include_tasks: pre_tasks/*.yml
42+
- name: Pre Tasks
43+
include_tasks: pre_tasks/*.yml
3344
when: pre_tasks is defined

0 commit comments

Comments
 (0)