From 07db5c04185fda7fcfa80e69b319aeae6f8e93e2 Mon Sep 17 00:00:00 2001 From: Joe Talerico Date: Mon, 27 Mar 2017 14:35:32 -0400 Subject: [PATCH] Missing become: true for many tasks Closes bug 1676544 Change-Id: Id91b9dcf01b3ffcf72917ed47c1b43d3eaaf0f92 --- ansible/install/roles/filebeat/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansible/install/roles/filebeat/tasks/main.yml b/ansible/install/roles/filebeat/tasks/main.yml index 6d4d10edb..ceb2504bf 100644 --- a/ansible/install/roles/filebeat/tasks/main.yml +++ b/ansible/install/roles/filebeat/tasks/main.yml @@ -14,6 +14,7 @@ become: true - name: Import Filebeat GPG Key + become: true rpm_key: key=http://packages.elastic.co/GPG-KEY-elasticsearch state=present when: (logging_backend != 'fluentd') @@ -38,6 +39,7 @@ - name: Check ELK server SSL client certificate stat: path=/etc/pki/tls/certs/filebeat-forwarder.crt + become: true ignore_errors: true register: elk_client_ssl_cert_exists when: (logging_backend != 'fluentd') @@ -68,6 +70,7 @@ when: (logging_backend == 'fluentd') - name: Setup rsyslogd for fluentd + become: true lineinfile: dest=/etc/rsyslog.conf \ line="*.* @{{ elk_server }}:{{ fluentd_syslog_port }}" when: (logging_backend == 'fluentd') @@ -85,6 +88,7 @@ when: (logging_backend == 'fluentd') - name: Restarting rsyslog for fluentd + become: true command: systemctl restart rsyslog.service ignore_errors: true when: rsyslog_updated != 0