1
0
Fork 0
mirror of https://github.com/ansible-collections/community.mysql.git synced 2026-02-04 07:11:49 +00:00

mysql_db: change pipefail default as true

This commit is contained in:
Andrew Klychkov 2025-09-15 13:41:03 +02:00
parent 08257cd4d4
commit e6df65987d
2 changed files with 4 additions and 4 deletions

View file

@ -0,0 +1,2 @@
major_changes:
- mysql_db - the ``pipefail`` argument's default value is set to ``true``. If your target machines do not use ``bash`` as a default interpreter, set ``pipefail`` to ``false`` explicitly. However, we strongly recommend setting up ``bash`` as a default and ``pipefail=true`` as it will protect you from getting broken dumps you don't know about (https://github.com/ansible-collections/community.mysql/issues/407).

View file

@ -160,10 +160,8 @@ options:
description:
- Use C(bash) instead of C(sh) and add C(-o pipefail) to catch errors from the
mysql_dump command when I(state=dump) and compression is used.
- The default is C(no) to prevent issues on systems without bash as a default interpreter.
- The default will change to C(yes) in community.mysql 4.0.0.
type: bool
default: false
default: true
version_added: '3.4.0'
sql_log_bin:
description:
@ -637,7 +635,7 @@ def main():
check_implicit_admin=dict(type='bool', default=False),
config_overrides_defaults=dict(type='bool', default=False),
chdir=dict(type='path'),
pipefail=dict(type='bool', default=False),
pipefail=dict(type='bool', default=True),
sql_log_bin=dict(type='bool', default=True),
)