Add support to purge existing configuration snippets, by default don't purge anything.

This commit is contained in:
Alessio Cassibba (x-drum)
2017-03-15 14:40:32 +01:00
parent deda6ed978
commit 022b1c08a1
4 changed files with 32 additions and 0 deletions

View File

@@ -35,6 +35,15 @@
- restart rsyslog
when: rsyslog_os_supported == True
- name: remove existing (custom/additional) configurations
tags:
- rsyslog
- files
file:
state: absent
path: "{{ rsyslog_include_path }}/"
when: purge_config == True
- name: create additional configuration directory
tags:
- rsyslog