Listing of script should be on the control node.

This commit is contained in:
Glenn Y. Rolland 2016-02-16 21:32:41 +01:00
parent 4acd4e2a0a
commit 364735f5a7

View file

@ -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