Skip to content

Instantly share code, notes, and snippets.

@nickjj
Last active August 29, 2015 14:07
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 nickjj/525534429e3b898eca12 to your computer and use it in GitHub Desktop.
Save nickjj/525534429e3b898eca12 to your computer and use it in GitHub Desktop.
{% set rsyslogd_path = '/etc/rsyslog.d/' %}
Purge rsyslog:
pkg.purged:
- name: rsyslog
- onlyif:
- stat {{ rsyslogd_path }}
Remove rsyslog.d/:
file.absent:
- name: {{ rsyslogd_path }}
- onlyif:
- stat {{ rsyslogd_path }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment