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>
pull/10112/head
Arthur Outhenin-Chalandre 2023-05-22 02:28:21 +02:00 committed by GitHub
parent b7a8d7a4d5
commit 09ea2ca688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@
package: package:
name: "{{ item }}" name: "{{ item }}"
state: present state: present
with_items: "{{ distro_extra_packages }} + [ 'rsyslog', 'openssh-server' ]" with_items: "{{ distro_extra_packages + [ 'rsyslog', 'openssh-server' ] }}"
- name: Start needed services - name: Start needed services
service: service:

View File

@ -12,7 +12,7 @@
- name: Template vm files for CI job - name: Template vm files for CI job
set_fact: 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: vars:
vms_files: [] vms_files: []
loop: "{{ range(1, vm_count|int + 1, 1) | list }}" loop: "{{ range(1, vm_count|int + 1, 1) | list }}"