From 364735f5a71a04bb15587b7f11b47d564603918c Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Tue, 16 Feb 2016 21:32:41 +0100 Subject: [PATCH] Listing of script should be on the control node. --- tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index d66d36f..e102055 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,6 +1,7 @@ --- - name: List installable sh scripts - shell: ls -1 "{{role_path}}/files/bashrc.d/"*.sh + become: false + local_action: shell ls -1 "{{role_path}}/files/bashrc.d/"*.sh register: bash_scripts failed_when: bash_scripts.rc != 0