From df942a2aeaf6cf6a8bd05a77e19046bb2eb069ce Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 26 Jul 2022 20:41:49 +1000 Subject: [PATCH] linters: rename loop variable In this repo we name the loop variables. Although this is a test playbook, it's good for consistency. This is picked up by a later version of ansible-lint. This should have no operational change. Change-Id: I084a1e8515fe1fda039190fe6518512ebf03217e --- .../roles/run-test-intermediate-registry/tasks/main.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test-playbooks/registry/roles/run-test-intermediate-registry/tasks/main.yaml b/test-playbooks/registry/roles/run-test-intermediate-registry/tasks/main.yaml index bfba17653..d0bc72493 100644 --- a/test-playbooks/registry/roles/run-test-intermediate-registry/tasks/main.yaml +++ b/test-playbooks/registry/roles/run-test-intermediate-registry/tasks/main.yaml @@ -2,10 +2,12 @@ become: true file: state: directory - path: "/var/registry/{{ item }}" + path: "/var/registry/{{ zj_reg_dir }}" loop: - certs - auth + loop_control: + loop_var: zj_reg_dir - name: Install python packages become: true package: