From bbcbd02fd63bf76a27c6c5fc57643000096f57ee Mon Sep 17 00:00:00 2001 From: Manuel Gutierrez <1380243+xr09@users.noreply.github.com> Date: Mon, 13 Jul 2020 16:47:33 +0200 Subject: [PATCH] Avoid sudo on local_actions --- .../opendistro-elasticsearch/tasks/local_actions.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/opendistro/opendistro-elasticsearch/tasks/local_actions.yml b/roles/opendistro/opendistro-elasticsearch/tasks/local_actions.yml index 463263a5..3c89e6ab 100644 --- a/roles/opendistro/opendistro-elasticsearch/tasks/local_actions.yml +++ b/roles/opendistro/opendistro-elasticsearch/tasks/local_actions.yml @@ -4,6 +4,7 @@ path: "{{ local_certs_path }}" register: certificates_folder delegate_to: localhost + become: no tags: - generate-certs @@ -77,7 +78,8 @@ run_once: true delegate_to: localhost + become: no tags: - generate-certs when: - - not certificates_folder.stat.exists \ No newline at end of file + - not certificates_folder.stat.exists