- name: Find all .md files find: paths: "{{ zuul_work_dir }}" pattern: "*.md" register: markdown_find - name: Run markdownlint shell: | set -o pipefail set -e ~/.markdownlint/node_modules/.bin/markdownlint {{ zj_markdown | relpath(zuul_work_dir) }} 2>&1 | tee -a markdownlint.txt args: chdir: "{{ zuul_work_dir }}" executable: /bin/bash loop: "{{ markdown_find.files | map(attribute='path') | list }}" loop_control: loop_var: zj_markdown changed_when: false