diff --git a/tasks/main.yml b/tasks/main.yml index 0120339e..76332787 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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