project: fix arithmetic outside of jinja (#10106)

This feature no longer works on Ansible 6 / ansible-core 2.13. We do not
support these version officially yet but this will help for the future
upgrade and may help some people running those inadvertently.

Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
This commit is contained in:
Arthur Outhenin-Chalandre
2023-05-22 02:28:21 +02:00
committed by GitHub
parent b7a8d7a4d5
commit 09ea2ca688
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
- name: Template vm files for CI job
set_fact:
vms_files: "{{ vms_files }} + [{{ lookup('ansible.builtin.template', 'vm.yml.j2') | from_yaml }}]"
vms_files: "{{ vms_files + [lookup('ansible.builtin.template', 'vm.yml.j2') | from_yaml] }}"
vars:
vms_files: []
loop: "{{ range(1, vm_count|int + 1, 1) | list }}"