---
- name: Convert datadog_agent_major_version to string
  set_fact:
    datadog_agent_major_version: "{{ datadog_agent_major_version | default('', true) | string }}"

- name: Initialize skip install flag to false
  set_fact:
    datadog_skip_install: no

- include_tasks: parse-version.yml
  when: datadog_agent_version | default('', true) | length > 0

- name: Set Agent default major version
  set_fact:
    datadog_agent_major_version: "7"
  when: datadog_agent_major_version | length == 0
