mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-02 07:38:22 +00:00
Fix: Avoid loop variable collision in MinIO front-proxy include
Replaced default 'item' with explicit loop variable 'minio_proxy' to prevent conflicts with inner roles (e.g., sys-stk-front-proxy using with_first_found). This resolves the undefined variable error and removes the Ansible warning about the loop variable already being in use. Reference: https://chatgpt.com/share/692c5778-2b24-800f-b203-5b6b2c9b1d4b
This commit is contained in:
@@ -9,11 +9,12 @@
|
||||
include_role:
|
||||
name: sys-stk-front-proxy
|
||||
vars:
|
||||
domain: "{{ item.domain }}"
|
||||
http_port: "{{ item.http_port }}"
|
||||
domain: "{{ minio_proxy.domain }}"
|
||||
http_port: "{{ minio_proxy.http_port }}"
|
||||
loop: "{{ MINIO_FRONT_PROXY_MATRIX }}"
|
||||
loop_control:
|
||||
label: "{{ item.domain }} -> {{ item.http_port }}"
|
||||
loop_var: minio_proxy
|
||||
label: "{{ minio_proxy.domain }} -> {{ minio_proxy.http_port }}"
|
||||
|
||||
- block:
|
||||
- name: "Check policy (RAW with slash) exists"
|
||||
|
||||
Reference in New Issue
Block a user