Placing a debug statement in an Ansible loop causes an error.
Is there a way to display the contents of a register variable while in a loop?
vars:
fs_dir:
- /etc
- /mnt
- /bin
tasks:
- name: dir loop
command: "ls {{ item }}"
register: result
# debug: msg="{{ result }}"
loop: "{{ fs_dir }}"