mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-05-20 16:09:10 -07:00
fix 'item' already in use
This commit is contained in:
parent
e912d7e28a
commit
85a4255db3
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue