Created
August 4, 2015 11:36
-
-
Save lanky/93b65747afac837c5df3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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