mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
mysql_db: add use_shell parameter to prevent Broken pipe errors (#151)
* mysql_db: prevent broken pipe errors by using an intermediate shell process * use module.run_command() * mysql_db: add use_shell parameter * add changelog fragment
This commit is contained in:
parent
281549cadc
commit
3b5520ebf7
3 changed files with 45 additions and 13 deletions
|
@ -157,6 +157,7 @@
|
|||
state: import
|
||||
target: '{{ db_file_name }}'
|
||||
login_unix_socket: '{{ mysql_socket }}'
|
||||
use_shell: yes
|
||||
register: result
|
||||
|
||||
- name: show the tables
|
||||
|
@ -174,6 +175,7 @@
|
|||
state: import
|
||||
target: '{{ dump_file1 }}'
|
||||
login_unix_socket: '{{ mysql_socket }}'
|
||||
use_shell: no
|
||||
register: import_result
|
||||
|
||||
- name: assert output message restored a database from dump file1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue