Skip to content
Snippets Groups Projects
Commit 5d0d2dd7 authored by jurgenhaas's avatar jurgenhaas
Browse files

Uninstall v1 of the sd agent only if explicitly requested

parent 365f3fd1
No related branches found
No related tags found
No related merge requests found
......@@ -19,3 +19,5 @@ sd_groups:
sd_repo_public_key_uri: 'https://archive.serverdensity.com/sd-packaging-public.key'
sd_agent_plugins_dir: '/usr/share/python/sd-agent/checks.d/plugins'
sd_plugins_files_dir: "{{ playbook_dir }}/files/sd-plugins"
sd_uninstallv1: no
---
# file: roles/serverdensity/tasks/main.yml
- name: "ServerDensity | Check for old version 1"
shell: ls /etc/sd-agent/conf.d/disk.yaml.default
register: sd_v2_available
ignore_errors: yes
changed_when: False
- include: uninstallv1.yml
when: sd_v2_available.stdout != '/etc/sd-agent/conf.d/disk.yaml.default'
when: sd_uninstallv1
- name: "ServerDensity | Init SD plugin"
local_action:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment