Skip to content

Instantly share code, notes, and snippets.

@Tahvok
Last active February 2, 2018 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tahvok/5659ab3cdd589c0b80de257e462d08b1 to your computer and use it in GitHub Desktop.
Save Tahvok/5659ab3cdd589c0b80de257e462d08b1 to your computer and use it in GitHub Desktop.
- name: Check if agent scripts are cloned
stat:
path: "{{ zabbix_agnt_dir }}/.git"
register: agnt_git_dir
tags:
- zabbix_scripts
- name: Remove agent scripts if they are cloned from git
file:
path: "{{ zabbix_agnt_dir }}"
state: absent
when: agnt_git_dir.stat.exists
tags:
- zabbix_scripts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment