Browse Source

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 1 year ago
committed by GitHub
parent
commit
09ea2ca688
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
  1. 2
      contrib/dind/roles/dind-cluster/tasks/main.yaml
  2. 2
      tests/cloud_playbooks/roles/packet-ci/tasks/create-vms.yml

2
contrib/dind/roles/dind-cluster/tasks/main.yaml

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

2
tests/cloud_playbooks/roles/packet-ci/tasks/create-vms.yml

@ -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 }}"

Loading…
Cancel
Save