mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-05-21 08:29:09 -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_password: '{{ mysql_password }}'
|
||||||
login_host: '{{ mysql_host }}'
|
login_host: '{{ mysql_host }}'
|
||||||
login_port: '{{ mysql_primary_port }}'
|
login_port: '{{ mysql_primary_port }}'
|
||||||
name: '{{ item }}'
|
name: '{{ cleanup_db }}'
|
||||||
state: absent
|
state: absent
|
||||||
loop:
|
loop:
|
||||||
- '{{ db_name }}'
|
- '{{ db_name }}'
|
||||||
- '{{ db_name2 }}'
|
- '{{ db_name2 }}'
|
||||||
|
loop_control:
|
||||||
|
loop_var: cleanup_db
|
||||||
|
|
||||||
- name: Dump and Import | Clean up files
|
- name: Dump and Import | Clean up files
|
||||||
file:
|
file:
|
||||||
name: '{{ item }}'
|
name: '{{ cleanup_file }}'
|
||||||
state: absent
|
state: absent
|
||||||
loop:
|
loop:
|
||||||
- '{{ db_file_name }}'
|
- '{{ db_file_name }}'
|
||||||
- '{{ wrong_sql_file }}'
|
- '{{ wrong_sql_file }}'
|
||||||
- '{{ dump_file1 }}'
|
- '{{ dump_file1 }}'
|
||||||
- '{{ dump_file2 }}'
|
- '{{ dump_file2 }}'
|
||||||
|
loop_control:
|
||||||
|
loop_var: cleanup_file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue