mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user