-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #226 from the-real-cphillips/name_parameter_for_in…
…cludes [tasks] Include Names for `include_tasks`
- Loading branch information
Showing
1 changed file
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,44 @@ | ||
--- | ||
|
||
- include_tasks: set-parse-version.yml | ||
- name: Set Facts for Datadog Agent Major Version | ||
include_tasks: set-parse-version.yml | ||
|
||
- include_tasks: pkg-debian.yml | ||
- name: Debian Install Tasks | ||
include_tasks: pkg-debian.yml | ||
when: ansible_os_family == "Debian" | ||
|
||
- include_tasks: pkg-redhat.yml | ||
- name: RedHat Install Tasks | ||
include_tasks: pkg-redhat.yml | ||
when: ansible_os_family == "RedHat" | ||
|
||
- include_tasks: pkg-suse.yml | ||
- name: Suse Install Tasks | ||
include_tasks: pkg-suse.yml | ||
when: ansible_os_family == "Suse" | ||
|
||
- include_tasks: pkg-windows.yml | ||
- name: Windows Install Tasks | ||
include_tasks: pkg-windows.yml | ||
when: ansible_os_family == "Windows" | ||
|
||
- include_tasks: agent5-linux.yml | ||
- name: Linux Install Tasks (Agent 5) | ||
include_tasks: agent5-linux.yml | ||
when: datadog_agent_major_version|int == 5 and ansible_os_family != "Windows" | ||
|
||
- include_tasks: agent-linux.yml | ||
- name: Linux Install Tasks | ||
include_tasks: agent-linux.yml | ||
when: datadog_agent_major_version|int > 5 and ansible_os_family != "Windows" | ||
|
||
- include_tasks: agent-win.yml | ||
- name: Agent6 Install Tasks (Windows) | ||
include_tasks: agent-win.yml | ||
when: datadog_agent_major_version|int > 5 and ansible_os_family == "Windows" | ||
|
||
- include_tasks: integration.yml | ||
- name: Integrations Tasks | ||
include_tasks: integration.yml | ||
when: datadog_integration is defined | ||
|
||
- include_tasks: post_tasks/*.yml | ||
- name: Post Tasks | ||
include_tasks: post_tasks/*.yml | ||
when: post_tasks is defined | ||
|
||
- include_tasks: pre_tasks/*.yml | ||
- name: Pre Tasks | ||
include_tasks: pre_tasks/*.yml | ||
when: pre_tasks is defined |