Make TemplatesHaveTag rule handle simple loops
Handles simple cases of with_items, with_first_found, and with_random_choice. Examples: template: src: "{{ item }}".j2 with_items: - foo - bar template: src: "{{ item }}".j2 with_first_found: - foo - bar will both look for templates called foo.j2 and bar.j2 in the usual template locations, and check them if found. template: src: "{{ item }}".j2 with_first_found: - files: - foo - bar - paths: - etc - usr/lib will look for and check any of etc/foo.j2 etc/bar.j2 usr/lib/foo.j2 usr/lib/bar.j2
Please register or sign in to comment