Skip to content
Snippets Groups Projects
Commit 6705be85 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#19 Set role header

parent c7762a03
Branches
No related tags found
No related merge requests found
...@@ -8,16 +8,24 @@ ...@@ -8,16 +8,24 @@
--- ---
# file: roles/fluentd/tasks/main.yml # file: roles/fluentd/tasks/main.yml
- name: "Install Plugins" - name: "FluentD Role"
command: td-agent-gem install {{ item }} set_fact: role_fluentd_started=true
with_items: tags: always
- 'fluent-plugin-elasticsearch'
- 'fluent-plugin-record-reformer'
- name: "Copy SSL Key" - block:
copy:
src='{{ inventory_dir }}/files/ssl/td-agent/key.pem' - name: "Install Plugins"
dest='/etc/ssl/td-agent/key.pem' command: td-agent-gem install {{ item }}
owner='root' with_items:
group='root' - 'fluent-plugin-elasticsearch'
mode=644 - 'fluent-plugin-record-reformer'
- name: "Copy SSL Key"
copy:
src='{{ inventory_dir }}/files/ssl/td-agent/key.pem'
dest='/etc/ssl/td-agent/key.pem'
owner='root'
group='root'
mode=644
when: '"fluentd" not in excluded_roles'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment