Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tasks] Include Names for include_tasks #226

Merged
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