Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix jinja[invalid] false positive (#2465)
- Loading branch information
Showing
6 changed files
with
99 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,7 @@ hwcksum | |
idempotency | ||
importlib | ||
iniconfig | ||
ipwrap | ||
isclass | ||
isdir | ||
isdisjoint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
# https://github.com/ansible/ansible-lint/issues/2464 | ||
# https://github.com/ansible/ansible-lint/issues/2462 | ||
# https://github.com/ansible/ansible-lint/issues/2459 | ||
- name: Fixture to test various jinja parsing bugs that we should ignore | ||
hosts: localhost | ||
tasks: | ||
- name: Foo {{ buildset_registry.host | ipwrap }} | ||
ansible.builtin.debug: | ||
msg: "{{ lookup('template', 'lookup/redis_server__env_ports.j2') | from_yaml }}" | ||
loop: "{{ github_release_query.results | subelements('json.assets', {'skip_missing': True}) }}" | ||
- name: Zoo | ||
ansible.builtin.debug: | ||
msg: "{{ lookup('ansible.builtin.ini', 'SOME_VAR', type='properties', file='/tmp/some-file') }}" | ||
|
||
- name: Generate Dovecot main configuration file | ||
ansible.builtin.template: | ||
src: '{{ lookup("template_src", "etc/dovecot/dovecot.conf.j2") }}' | ||
dest: "/etc/dovecot/dovecot.conf" | ||
owner: "root" | ||
group: "dovecot" | ||
mode: "0640" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters