Merge "Make fluentd enabled configurable"

This commit is contained in:
Zuul 2017-12-18 10:30:36 +00:00 committed by Gerrit Code Review
commit 1e7bc49952
2 changed files with 6 additions and 0 deletions
ansible/roles/common/tasks

@ -80,12 +80,16 @@
pattern: "*.conf"
run_once: True
register: find_custom_fluentd_outputs
when:
- enable_fluentd | bool
- name: Copying over custom fluentd output config files
template:
src: "{{ item.path }}"
dest: "{{ node_config_directory }}/fluentd/output/{{ item.path | basename }}"
register: fluentd_output_custom
when:
- enable_fluentd | bool
with_items: "{{ find_custom_fluentd_outputs.files }}"
notify:
- Restart fluentd container

@ -4,4 +4,6 @@
action: "pull_image"
common_options: "{{ docker_common_options }}"
image: "{{ item.value.image }}"
when:
- item.value.enabled | bool
with_dict: "{{ common_services }}"