Add jinja filter
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2022-06-25 20:48:15 +02:00
parent bae044e145
commit cf91519076

View File

@ -24,7 +24,7 @@
ansible.builtin.file: ansible.builtin.file:
path: "{{ archives.path }}/{{ item.filename }}" path: "{{ archives.path }}/{{ item.filename }}"
state: directory state: directory
loop: "{{ dependencies.static_binaries | selectattr('archive', 'equalto', 'compressed') }}" loop: "{{ dependencies.static_binaries | selectattr('archive', 'defined') | selectattr('archive', 'equalto', 'compressed') }}"
- name: Download, extract & install archived static binaries - name: Download, extract & install archived static binaries
ansible.builtin.unarchive: ansible.builtin.unarchive:
@ -32,7 +32,7 @@
dest: "{{ archives.path }}/{{ item.filename }}" dest: "{{ archives.path }}/{{ item.filename }}"
remote_src: yes remote_src: yes
extra_opts: "{{ item.extra_opts | default(omit) }}" extra_opts: "{{ item.extra_opts | default(omit) }}"
loop: "{{ dependencies.static_binaries | selectattr('archive', 'equalto', 'compressed') }}" loop: "{{ dependencies.static_binaries | selectattr('archive', 'defined') | selectattr('archive', 'equalto', 'compressed') }}"
- name: Cleanup tempfolder - name: Cleanup tempfolder
ansible.builtin.file: ansible.builtin.file: