fix 'item' already in use

This commit is contained in:
Laurent Indermuehle 2025-04-25 14:45:17 +02:00
parent e912d7e28a
commit 85a4255db3
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -487,18 +487,22 @@
login_password: '{{ mysql_password }}'
login_host: '{{ mysql_host }}'
login_port: '{{ mysql_primary_port }}'
name: '{{ item }}'
name: '{{ cleanup_db }}'
state: absent
loop:
- '{{ db_name }}'
- '{{ db_name2 }}'
loop_control:
loop_var: cleanup_db
- name: Dump and Import | Clean up files
file:
name: '{{ item }}'
name: '{{ cleanup_file }}'
state: absent
loop:
- '{{ db_file_name }}'
- '{{ wrong_sql_file }}'
- '{{ dump_file1 }}'
- '{{ dump_file2 }}'
loop_control:
loop_var: cleanup_file