Skip to content

Instantly share code, notes, and snippets.

@lanky
Created August 4, 2015 11:36
Show Gist options
  • Save lanky/93b65747afac837c5df3 to your computer and use it in GitHub Desktop.
Save lanky/93b65747afac837c5df3 to your computer and use it in GitHub Desktop.
# assuming a group called rsyslog_servers of which your target host is a member
# with this content ina vars file somewhere
rsyslog_server_files:
- rsyslog.conf
- rsyslog.d/00-allowedhost.conf
- rsyslog.d/50-default.conf
# and some thing like this in your role
- name: deploy rsyslog config
template:
src: {{item}}
dst: /tmp/{{item}}
with_items: rsyslog_server_files
when: rsyslog_servers in group_names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment