refactor ansible code in to ansible-2.0 folder, and created space for ansible-2.10
This commit is contained in:
31
ansible-2.0/roles/rsyslog/tasks/main.yml
Normal file
31
ansible-2.0/roles/rsyslog/tasks/main.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
# main tasks for rsyslog config
|
||||
|
||||
- debug: var=rsyslog
|
||||
|
||||
- name: remove packages
|
||||
apt:
|
||||
state: present
|
||||
name: "{{item}}"
|
||||
update_cache: yes
|
||||
cache_valid_time: 86400
|
||||
with_items:
|
||||
- rsyslog-gnutls
|
||||
|
||||
- name: copy tls certs for papertrail
|
||||
get_url:
|
||||
url: https://papertrailapp.com/tools/papertrail-bundle.pem
|
||||
dest: /etc/papertrail-bundle.pem
|
||||
force: yes
|
||||
mode: 0644
|
||||
|
||||
- name: copy custom configs
|
||||
template:
|
||||
src: "{{ item }}.j2"
|
||||
dest: /etc/rsyslog.d/{{ item }}.conf
|
||||
owner: "{{ rsyslog.user }}"
|
||||
group: "{{ rsyslog.group }}"
|
||||
mode: 0644
|
||||
with_items: "{{rsyslog.configs}}"
|
||||
notify:
|
||||
- restart rsyslog
|
||||
Reference in New Issue
Block a user