blob: 00ce00f3876508a30847d4467d89b4e718f6b1f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
---
# 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"
- name: Bug https://github.com/ansible/ansible-lint/issues/2569
ansible.builtin.include_tasks:
file: /dev/null
vars:
ns_vars: {}
x: "{{ lookup('ansible.builtin.template', 'namespace.yaml.j2', template_vars=ns_vars) | from_yaml }}"
# https://github.com/ansible/ansible-lint/issues/2697
- name: Test linter
hosts: localhost
gather_facts: false
tasks:
- name: Passed linter
ansible.builtin.debug:
msg: "{{ test | to_json }}"
vars:
test:
one: two
param: "{{ ansible_host }}"
- name: Failed linter
ansible.builtin.debug:
msg: "{{ test | to_json }}"
vars:
test:
one: two
param: no jinja
|