Commit f15ded03 by syed-awais-ali

separate playbook for uninstalling datadog

parent e3d1b94c
......@@ -200,25 +200,3 @@
- "install"
- "install:configuration"
- "logrotate"
- name: Remove apt key for datadog
apt_key:
id: "382E94DE"
url: "{{ COMMON_UBUNTU_APT_KEYSERVER }}{{ common_datadog_apt_key }}"
state: absent
tags:
- COMMON_DISABLE_DATADOG
- name: Uninstall apt repository for datadog
apt_repository:
repo: 'deb http://apt.datadoghq.com/ stable main'
state: absent
tags:
- COMMON_DISABLE_DATADOG
- name: Uninstall datadog agent
apt:
name: "datadog-agent={{ common_datadog_agent_version }}"
state: absent
tags:
- COMMON_DISABLE_DATADOG
......@@ -227,5 +227,3 @@ CREATE_SERVICE_WORKER_USERS: True
COMMON_ENABLE_AWS_ROLE: true
COMMON_DISABLE_DATADOG: false
common_datadog_agent_version: '1:5.10.1-1'
common_datadog_apt_key: "0x382E94DE"
common_datadog_agent_version: '1:5.10.1-1'
common_datadog_apt_key: "0x382E94DE"
---
- name: Remove apt key for datadog
apt_key:
id: "382E94DE"
url: "{{ COMMON_UBUNTU_APT_KEYSERVER }}{{ common_datadog_apt_key }}"
state: absent
tags:
- COMMON_DISABLE_DATADOG
- name: Uninstall apt repository for datadog
apt_repository:
repo: 'deb http://apt.datadoghq.com/ stable main'
state: absent
tags:
- COMMON_DISABLE_DATADOG
- name: Uninstall datadog agent
apt:
name: "datadog-agent={{ common_datadog_agent_version }}"
state: absent
tags:
- COMMON_DISABLE_DATADOG
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment