Avoid shadowing loop variables. (#738)

This commit is contained in:
Felix Fontein
2024-01-02 14:21:19 +01:00
committed by GitHub
parent 2caa77c032
commit 39717d380e
28 changed files with 216 additions and 185 deletions
@@ -24,14 +24,16 @@
# Run the tests
- block:
- name: Create a Swarm cluster
docker_swarm:
state: present
advertise_addr: "{{ansible_default_ipv4.address | default('127.0.0.1')}}"
- name: Create a Swarm cluster
docker_swarm:
state: present
advertise_addr: "{{ansible_default_ipv4.address | default('127.0.0.1')}}"
- include_tasks: run-test.yml
with_fileglob:
- "tests/*.yml"
- include_tasks: run-test.yml
with_fileglob:
- "tests/*.yml"
loop_control:
loop_var: test_name
always:
- name: Make sure all services are removed