You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below an example of invalid syntax; should be easy enough to add linting of this to the code that generates the "more than one module" warnings in jinjalint.py
- name: do lots of things
loop: "{{ my_collection }}"
block:
- name: foo
debug: msg=foomsg
- name: bar
debug: msg=barmsg
Below an example of invalid syntax; should be easy enough to add linting of this to the code that generates the "more than one module" warnings in
jinjalint.py
Eric Anderson has a neat workaround that we could suggest to the user: https://ericsysmin.com/2019/06/20/how-to-loop-blocks-of-code-in-ansible/
The text was updated successfully, but these errors were encountered: