From 0b3d793572f139baf51575544cf987ca17367b7e Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Thu, 23 Jun 2022 09:27:09 +0200 Subject: [PATCH] Document example of dump with pipefail --- plugins/modules/mysql_db.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/modules/mysql_db.py b/plugins/modules/mysql_db.py index a9fc1fd..cd63046 100644 --- a/plugins/modules/mysql_db.py +++ b/plugins/modules/mysql_db.py @@ -303,6 +303,13 @@ EXAMPLES = r''' login_password: 123456 name: bobdata state: present + +- name: Dump a database with compression and catch errors from mysqldump with bash pipefail + community.mysql.mysql_db: + state: dump + name: foo + target: /tmp/dump.sql.gz + pipefail: true ''' RETURN = r'''