Skip to content

Commit

Permalink
Merge pull request #226 from the-real-cphillips/name_parameter_for_in…
Browse files Browse the repository at this point in the history
…cludes

[tasks] Include Names for `include_tasks`
  • Loading branch information
KSerrania authored Dec 23, 2019
2 parents a9b80e7 + 66d8809 commit 7fdb06d
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions tasks/main.yml
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

0 comments on commit 7fdb06d

Please sign in to comment.