From 7449a8070e2074da94a3b5bc69b059db71dcdad4 Mon Sep 17 00:00:00 2001 From: Sai Sindhur Malleni Date: Tue, 14 Apr 2020 09:09:21 -0400 Subject: [PATCH] Enable filebeat when start_filebeat is true Change-Id: I88015fa34b743b6b7618e0faf74818266d8ce2f1 --- ansible/common_logging/roles/filebeat_setup/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/common_logging/roles/filebeat_setup/tasks/main.yml b/ansible/common_logging/roles/filebeat_setup/tasks/main.yml index 0451a12c0..fafd87dbf 100644 --- a/ansible/common_logging/roles/filebeat_setup/tasks/main.yml +++ b/ansible/common_logging/roles/filebeat_setup/tasks/main.yml @@ -20,8 +20,8 @@ - name: Start and enable filebeat service: name: filebeat - state: stopped - enabled: no + state: started + enabled: yes become: true when: start_filebeat is defined and start_filebeat|bool