Debian Codegraph @

ansible_collections/community/mysql/CHANGELOG.rst

raw
1 ====================================================
2 Community MySQL and MariaDB Collection Release Notes
3 ====================================================
4
5 .. contents:: Topics
6
7 This changelog describes changes after version 2.0.0.
8
9 v5.0.2
10 ======
11
12 Release Summary
13 ---------------
14
15 This is a patch release of community.mysql collections which only adds deprecation warnings to module redirects.
16
17 v5.0.1
18 ======
19
20 Release Summary
21 ---------------
22
23 This is a patch release of the community.mysql collection. It contains a fix for compatibility with ansible.mysql.
24
25 Bugfixes
26 --------
27
28 - Add action_groups to meta/runtime.yml to ensure that if the community.mysql action group is used, it also applies to ansible.mysql's action group.
29
30 v5.0.0
31 ======
32
33 Release Summary
34 ---------------
35
36 This collection has been deprecated. Please use ``ansible.mysql`` instead - https://galaxy.ansible.com/ui/repo/published/ansible/mysql/. All the modules were moved to ``ansible.mysql`` as-is. Your current playbooks that call the modules from ``community.mysql`` will not require any changes and will continue working via redirects to the corresponding modules in ``ansible.mysql``, though we recommend changing FQCN parts in module names in playbook tasks as soon as possible (e.g. ``community.mysql.mysql_info`` -> ``ansible.mysql.mysql_info``).
37
38 Breaking Changes / Porting Guide
39 --------------------------------
40
41 - All modules and plugins have been removed from this collection. They have been migrated to the `ansible.mysql <https://galaxy.ansible.com/ui/repo/published/ansible/mysql/>`_ collection. Redirections have been provided.
42 Please install ``ansible.mysql`` and adjust the FQCNs in your playbooks (``community.mysql.mysql_info`` → ``ansible.mysql.mysql_info``).
43
44 Removed Features (previously deprecated)
45 ----------------------------------------
46
47 - All modules and plugins have been removed from this collection. They have been migrated to the `ansible.mysql <https://galaxy.ansible.com/ui/repo/published/ansible/mysql/>`_ collection. Redirections have been provided.
48 Please install ``ansible.mysql`` and adjust the FQCNs in your playbooks (``community.mysql.mysql_info`` → ``ansible.mysql.mysql_info``).
49
50 v4.2.1
51 ======
52
53 Release Summary
54 ---------------
55
56 This is a patch release of the ``community.mysql`` collection.
57 This changelog contains all changes to the modules and plugins in this collection
58 that have been made after the previous release.
59
60 Bugfixes
61 --------
62
63 - mysql_query - fix ``Value of unknown type`` error when query results contain non-JSON-serializable types such as ``decimal.Decimal`` or ``datetime``. Results are now round-tripped through ``json.dumps(default=str)`` before being returned, coercing unserializable values to their string representation (https://github.com/ansible-collections/community.mysql/issues/783).
64
65 v4.2.0
66 ======
67
68 Release Summary
69 ---------------
70
71 This is a minor release of the ``community.mysql`` collection.
72 This changelog contains all breaking changes to the modules in this collection
73
74 Minor Changes
75 -------------
76
77 - Update imports from ansible.module_utils._text to use ansible.module_utils.common.text.converters
78
79 Breaking Changes / Porting Guide
80 --------------------------------
81
82 - Update imports from ansible.module_utils.six to use their python3 equivalent. This change will make this collection incompatible for managed hosts on python2.7.
83
84 Bugfixes
85 --------
86
87 - mysql_user - When creating a new user, and specifying parsec as plugin it wil generate the wrong SQL query. It should be added to the same plugin check as ed25519 so that it generates a query using USING PASSWORDS(%s) instead of BY %s (https://github.com/ansible-collections/community.mysql/pull/779).
88
89 v4.1.0
90 ======
91
92 Release Summary
93 ---------------
94
95 This is a minor release of the ``community.mysql`` collection.
96 This changelog contains all breaking changes to the modules in this collection
97 that have been added after the previous release.
98
99 Minor Changes
100 -------------
101
102 - mysql_role - add ``sql_log_bin`` option to disable binary logging for the connection (https://github.com/ansible-collections/community.mysql/issues/742).
103
104 v4.0.1
105 ======
106
107 Release Summary
108 ---------------
109
110 This is a patch release of the ``community.mysql`` collection.
111 This changelog contains all breaking changes to the modules in this collection
112 that have been added after the previous release.
113
114 Bugfixes
115 --------
116
117 - mysql_info - Fix slave status for source terminology introduced in MySQL 8.0.23 (https://github.com/ansible-collections/community.mysql/issues/682).
118 - mysql_user, mysql_role - fix not existent grant when revoking perms on user/role which do not have any other perms than grant option (https://github.com/ansible-collections/community.mysql/issues/664).
119
120 v4.0.0
121 ======
122
123 Release Summary
124 ---------------
125
126 This is a major release of the ``community.mysql`` collection.
127 This changelog contains all breaking changes to the modules in this collection
128 that have been added after the release of ``community.mysql`` 3.16.0.
129
130 Breaking Changes / Porting Guide
131 --------------------------------
132
133 - Since version 4.0.0, the collection accepts code written in Python 3. Modules aren't tested against Python 2 and might not work in Python 2 environments.
134 - collection - stop testing against mysqlclient connector as its support was deprecated in this collection - use PyMySQL connector instead! It'll stop working in 5.0.0 when we remove all related code (https://github.com/ansible-collections/community.mysql/issues/654).
135 - 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).
136 - mysql_info - The ``users_info`` filter does not return the ``plugin_auth_string`` field anymore. Use the `plugin_hash_string` return value instead (https://github.com/ansible-collections/community.mysql/pull/629).
137 - mysql_role - the ``column_case_sensitive`` argument's default value has been changed to ``true``. If your playbook expected the column to be automatically uppercased for your users privileges, you should set this to ``false`` explicitly (https://github.com/ansible-collections/community.mysql/issues/578).
138 - mysql_user - the ``column_case_sensitive`` argument's default value has been changed to ``true``. If your playbook expected the column to be automatically uppercased for your users privileges, you should set this to ``false`` explicitly (https://github.com/ansible-collections/community.mysql/issues/577).
139
140 v3.16.0
141 =======
142
143 Release Summary
144 ---------------
145
146 This is the minor release of the ``community.mysql`` collection.
147 This changelog contains all changes to the modules and plugins in this collection
148 that have been made after the previous release.
149
150 Minor Changes
151 -------------
152
153 - `mysql_query` - add new `session_vars` argument, similar to ansible-collections/community.mysql#489.
154
155 v3.15.0
156 =======
157
158 Release Summary
159 ---------------
160
161 This is a minor release of the ``community.mysql`` collection.
162 This changelog contains all changes to the modules and plugins in this collection
163 that have been made after the previous release.'
164
165 Minor Changes
166 -------------
167
168 - mysql_db - Add support for ``sql_log_bin`` option (https://github.com/ansible-collections/community.mysql/issues/700).
169
170 Bugfixes
171 --------
172
173 - mysql_query - fix a Python 2 compatibility issue caused by the addition of ``execution_time_ms`` in version 3.12 (see https://github.com/ansible-collections/community.mysql/issues/716).
174 - mysql_user - fix a crash (unable to parse the MySQL grant string: SET DEFAULT ROLE `somerole` FOR `someuser`@`%`) when using the ``mysql_user`` module with a DEFAULT role present in MariaDB. The DEFAULT role is now ignored by the parser (https://github.com/ansible-collections/community.mysql/issues/710).
175
176 v3.14.0
177 =======
178
179 Release Summary
180 ---------------
181
182 This is a minor release of the ``community.mysql`` collection.
183 This changelog contains all changes to the modules and plugins in this collection
184 that have been made after the previous release.'
185
186 Minor Changes
187 -------------
188
189 - mysql_replication - change default value for ``primary_ssl_verify_server_cert`` from False to None. This should not affect existing playbooks (https://github.com/ansible-collections/community.mysql/pull/707).
190
191 Bugfixes
192 --------
193
194 - mysql_info - fix a crash (ERROR 1141, There is no such grant defined for user 'PUBLIC' on host '%') when using the ``users_info`` filter with a PUBLIC role present in MariaDB 10.11+. Do note that the fix doesn't change the fact that the module won't return the privileges from the PUBLIC role in the users privileges list. It can't do that because you have to login as the particular user and use `SHOW GRANTS FOR CURRENT_USER`. We considered using an aggregation with the `SHOW GRANTS FOR PUBLIC` command. However, this approach would make copying users from one server to another transform the privileges inherited from the role as if they were direct privileges on the user.
195 - mysql_replication - fixed an issue where setting ``primary_ssl_verify_server_cert`` to false had no effect (https://github.com/ansible-collections/community.mysql/issues/689).
196
197 v3.13.0
198 =======
199
200 Release Summary
201 ---------------
202
203 This is a minor release of the ``community.mysql`` collection.
204 This changelog contains all changes to the modules and plugins in this
205 collection that have been made after the previous release.
206
207 Minor Changes
208 -------------
209
210 - Integration tests for MariaDB 11.4 have replaced those for 10.5. The previous version is now 10.11.
211 - mysql_user - add ``locked`` option to lock/unlock users, this is mainly used to have users that will act as definers on stored procedures.
212
213 Bugfixes
214 --------
215
216 - mysql_db - fix dump and import to find MariaDB binaries (mariadb and mariadb-dump) when MariaDB 11+ is used and symbolic links to MySQL binaries are absent.
217
218 v3.12.0
219 =======
220
221 Release Summary
222 ---------------
223
224 This is a minor release of the ``community.mysql`` collection.
225 This changelog contains all changes to the modules and plugins in this
226 collection that have been made after the previous release.
227
228 Minor Changes
229 -------------
230
231 - mysql_db - added ``zstd`` (de)compression support for ``import``/``dump`` states (https://github.com/ansible-collections/community.mysql/issues/696).
232 - mysql_query - returns the ``execution_time_ms`` list containing execution time per query in milliseconds.
233
234 v3.11.0
235 =======
236
237 Release Summary
238 ---------------
239
240 This is a minor release of the ``community.mysql`` collection.
241
242 This changelog contains all changes to the modules and plugins in this
243 collection that have been made after the previous release.
244
245 Minor Changes
246 -------------
247
248 - mysql_info - adds the count of tables for each database to the returned values. It is possible to exclude this new field using the ``db_table_count`` exclusion filter. (https://github.com/ansible-collections/community.mysql/pull/691)
249
250 Bugfixes
251 --------
252
253 - mysql_user,mysql_role - The sql_mode ANSI_QUOTES affects how the modules mysql_user and mysql_role compare the existing privileges with the configured privileges, as well as decide whether double quotes or backticks should be used in the GRANT statements. Pointing out in issue 671, the modules mysql_user and mysql_role allow users to enable/disable ANSI_QUOTES in session variable (within a DB session, the session variable always overwrites the global one). But due to the issue, the modules do not check for ANSI_MODE in the session variable, instead, they only check in the GLOBAL one.That behavior is not only limiting the users' flexibility, but also not allowing users to explicitly disable ANSI_MODE to work around such bugs like https://bugs.mysql.com/bug.php?id=115953. (https://github.com/ansible-collections/community.mysql/issues/671)
254
255 v3.10.3
256 =======
257
258 Release Summary
259 ---------------
260
261 This is a bugfix release of the ``community.mysql`` collection.
262 This changelog contains all changes to the modules and plugins in this
263 collection that have been made after the previous release.
264
265 Bugfixes
266 --------
267
268 - mysql_user - add correct ``ed25519`` auth plugin handling when creating a user (https://github.com/ansible-collections/community.mysql/pull/676).
269
270 v3.10.2
271 =======
272
273 Release Summary
274 ---------------
275
276 This is a bugfix release of the ``community.mysql`` collection.
277 This changelog contains all changes to the modules and plugins in this
278 collection that have been made after the previous release.
279
280 Bugfixes
281 --------
282
283 - mysql_user - add correct ``ed25519`` auth plugin handling when creating a user (https://github.com/ansible-collections/community.mysql/issues/672).
284
285 v3.10.1
286 =======
287
288 Release Summary
289 ---------------
290
291 This is a patch release of the ``community.mysql`` collection.
292 Besides a bugfix, it contains an important upcoming breaking-change information.
293
294 Deprecated Features
295 -------------------
296
297 - mysql_user - the ``user`` alias of the ``name`` argument has been deprecated and will be removed in collection version 5.0.0. Use the ``name`` argument instead.
298
299 Bugfixes
300 --------
301
302 - mysql_user - module makes changes when is executed with ``plugin_auth_string`` parameter and check mode.
303
304 v3.10.0
305 =======
306
307 Release Summary
308 ---------------
309
310 This is a minor release of the ``community.mysql`` collection.
311 This changelog contains all changes to the modules and plugins in this
312 collection that have been made after the previous release.
313
314 Minor Changes
315 -------------
316
317 - mysql_info - Add ``tls_requires`` returned value for the ``users_info`` filter (https://github.com/ansible-collections/community.mysql/pull/628).
318 - mysql_info - return a database server engine used (https://github.com/ansible-collections/community.mysql/issues/644).
319 - mysql_replication - Adds support for `CHANGE REPLICATION SOURCE TO` statement (https://github.com/ansible-collections/community.mysql/issues/635).
320 - mysql_replication - Adds support for `SHOW BINARY LOG STATUS` and `SHOW BINLOG STATUS` on getprimary mode.
321 - mysql_replication - Improve detection of IsReplica and IsPrimary by inspecting the dictionary returned from the SQL query instead of relying on variable types. This ensures compatibility with changes in the connector or the output of SHOW REPLICA STATUS and SHOW MASTER STATUS, allowing for easier maintenance if these change in the future.
322 - mysql_user - Add salt parameter to generate static hash for `caching_sha2_password` and `sha256_password` plugins.
323
324 Deprecated Features
325 -------------------
326
327 - collection - support of mysqlclient connector is deprecated - use PyMySQL connector instead! We will stop testing against it in collection version 4.0.0 and remove the related code in 5.0.0 (https://github.com/ansible-collections/community.mysql/issues/654).
328 - mysql_info - The ``users_info`` filter returned variable ``plugin_auth_string`` contains the hashed password and it's misleading, it will be removed from community.mysql 4.0.0. Use the `plugin_hash_string` return value instead (https://github.com/ansible-collections/community.mysql/pull/629).
329
330 Bugfixes
331 --------
332
333 - mysql_info - Add ``plugin_hash_string`` to ``users_info`` filter's output. The existing ``plugin_auth_string`` contained the hashed password and thus is missleading, it will be removed from community.mysql 4.0.0. (https://github.com/ansible-collections/community.mysql/pull/629).
334 - mysql_user - Added a warning to update_password's on_new_username option if multiple accounts with the same username but different passwords exist (https://github.com/ansible-collections/community.mysql/pull/642).
335 - mysql_user - Fix ``tls_requires`` not removing ``SSL`` and ``X509`` when sets as empty (https://github.com/ansible-collections/community.mysql/pull/628).
336 - mysql_user - Fix idempotence when using variables from the ``users_info`` filter of ``mysql_info`` as an input (https://github.com/ansible-collections/community.mysql/pull/628).
337 - mysql_user - Fixed an IndexError in the update_password functionality introduced in PR https://github.com/ansible-collections/community.mysql/pull/580 and released in community.mysql 3.8.0. If you used this functionality, please avoid versions 3.8.0 to 3.9.0 (https://github.com/ansible-collections/community.mysql/pull/642).
338 - mysql_user - add correct ``ed25519`` auth plugin handling (https://github.com/ansible-collections/community.mysql/issues/6).
339 - mysql_variables - fix the module always changes on boolean values (https://github.com/ansible-collections/community.mysql/issues/652).
340
341 v3.9.0
342 ======
343
344 Release Summary
345 ---------------
346
347 This is a minor release of the ``community.mysql`` collection.
348 This changelog contains all changes to the modules and plugins in this
349 collection that have been made after the previous release.
350
351 Major Changes
352 -------------
353
354 - Collection version 2.*.* is EOL, no more bugfixes will be backported. Please consider upgrading to the latest version.
355
356 Minor Changes
357 -------------
358
359 - mysql_user - add the ``password_expire`` and ``password_expire_interval`` arguments to implement the password expiration management for mysql user (https://github.com/ansible-collections/community.mysql/pull/598).
360 - mysql_user - add user attribute support via the ``attributes`` parameter and return value (https://github.com/ansible-collections/community.mysql/pull/604).
361
362 Bugfixes
363 --------
364
365 - mysql_info - the ``slave_status`` filter was returning an empty list on MariaDB with multiple replication channels. It now returns all channels by running ``SHOW ALL SLAVES STATUS`` for MariaDB servers (https://github.com/ansible-collections/community.mysql/issues/603).
366
367 v3.8.0
368 ======
369
370 Release Summary
371 ---------------
372
373 This is the minor release of the ``community.mysql`` collection.
374 This changelog contains all changes to the modules and plugins in this
375 collection that have been made after the previous release.
376
377 Major Changes
378 -------------
379
380 - The community.mysql collection no longer supports ``ansible-core 2.12`` and ``ansible-core 2.13``. While we take no active measures to prevent usage and there are no plans to introduce incompatible code to the modules, we will stop testing those versions. Both are or will soon be End of Life and if you are still using them, you should consider upgrading to the ``latest Ansible / ansible-core 2.15 or later`` as soon as possible (https://github.com/ansible-collections/community.mysql/pull/574).
381 - mysql_role - the ``column_case_sensitive`` argument's default value will be changed to ``true`` in community.mysql 4.0.0. If your playbook expected the column to be automatically uppercased for your roles privileges, you should set this to false explicitly (https://github.com/ansible-collections/community.mysql/issues/578).
382 - mysql_user - the ``column_case_sensitive`` argument's default value will be changed to ``true`` in community.mysql 4.0.0. If your playbook expected the column to be automatically uppercased for your users privileges, you should set this to false explicitly (https://github.com/ansible-collections/community.mysql/issues/577).
383
384 Minor Changes
385 -------------
386
387 - mysql_info - add filter ``users_info`` (https://github.com/ansible-collections/community.mysql/pull/580).
388 - mysql_role - add ``column_case_sensitive`` option to prevent field names from being uppercased (https://github.com/ansible-collections/community.mysql/pull/569).
389 - mysql_user - add ``column_case_sensitive`` option to prevent field names from being uppercased (https://github.com/ansible-collections/community.mysql/pull/569).
390
391 v3.7.2
392 ======
393
394 Release Summary
395 ---------------
396
397 This is a patch release of the community.mysql collection.
398 This changelog contains all changes to the modules and plugins in this collection
399 that have been made after the previous release.
400
401 Bugfixes
402 --------
403
404 - mysql module utils - use the connection arguments ``db`` instead of ``database`` and ``passwd`` instead of ``password`` when running with MySQLdb < 2.0.0 (https://github.com/ansible-collections/community.mysql/pull/553).
405
406 v3.7.1
407 ======
408
409 Release Summary
410 ---------------
411
412 This is a patch release of the community.mysql collection.
413 This changelog contains all changes to the modules and plugins in this collection
414 that have been made after the previous release.
415
416 Bugfixes
417 --------
418
419 - mysql module utils - use the connection arguments ``db`` instead of ``database`` and ``passwd`` instead of ``password`` when running with older mysql drivers (MySQLdb < 2.1.0 or PyMySQL < 1.0.0) (https://github.com/ansible-collections/community.mysql/pull/551).
420
421 v3.7.0
422 ======
423
424 Release Summary
425 ---------------
426
427 This is the minor release of the ``community.mysql`` collection.
428 This changelog contains all changes to the modules and plugins in this collection
429 that have been made after the previous release.
430
431 Minor Changes
432 -------------
433
434 - mysql module utils - change deprecated connection parameters ``passwd`` and ``db`` to ``password`` and ``database`` (https://github.com/ansible-collections/community.mysql/pull/177).
435 - mysql_user - add ``MAX_STATEMENT_TIME`` support for mariadb to the ``resource_limits`` argument (https://github.com/ansible-collections/community.mysql/issues/211).
436
437 v3.6.0
438 ======
439
440 Release Summary
441 ---------------
442
443 This is the minor release of the ``community.mysql`` collection.
444 This changelog contains all changes to the modules and plugins in this collection
445 that have been made after the previous release.
446
447 Minor Changes
448 -------------
449
450 - mysql_info - add ``connector_name`` and ``connector_version`` to returned values (https://github.com/ansible-collections/community.mysql/pull/497).
451 - mysql_role - enable auto_commit to avoid MySQL metadata table lock (https://github.com/ansible-collections/community.mysql/issues/479).
452 - mysql_user - add plugin_auth_string as optional parameter to use a specific pam service if pam/auth_pam plugin is used (https://github.com/ansible-collections/community.mysql/pull/445).
453 - mysql_user - add the ``session_vars`` argument to set session variables at the beginning of module execution (https://github.com/ansible-collections/community.mysql/issues/478).
454 - mysql_user - display a more informative invalid privilege exception. Changes the exception handling of the granting permission logic to show the query executed , params and the exception message granting privileges fails` (https://github.com/ansible-collections/community.mysql/issues/465).
455 - mysql_user - enable auto_commit to avoid MySQL metadata table lock (https://github.com/ansible-collections/community.mysql/issues/479).
456 - setup_mysql - update MySQL tarball URL (https://github.com/ansible-collections/community.mysql/pull/491).
457
458 Bugfixes
459 --------
460
461 - mysql_user - when revoke privs consists only of ``GRANT``, a 2nd revoke query is executed with empty privs to revoke that ended in an SQL exception (https://github.com/ansible-collections/community.mysql/pull/503).
462 - mysql_variables - add uppercase character pattern to regex to allow GLOBAL variables containing uppercase characters. This recognizes variable names used in Galera, for example, ``wsrep_OSU_method``, which breaks the normal pattern of all lowercase characters (https://github.com/ansible-collections/community.mysql/pull/501).
463
464 v3.5.1
465 ======
466
467 Release Summary
468 ---------------
469
470 This is the patch release of the ``community.mysql`` collection.
471 This changelog contains all changes to the modules and plugins in this collection
472 that have been made after the previous release.
473
474 Bugfixes
475 --------
476
477 - mysql_user, mysql_role - mysql/mariadb recent versions translate 'ALL PRIVILEGES' to a list of specific privileges. That caused a change every time we modified user privileges. This fix compares privs before and after user modification to avoid this infinite change (https://github.com/ansible-collections/community.mysql/issues/77).
478
479 v3.5.0
480 ======
481
482 Release Summary
483 ---------------
484
485 This is the minor release of the ``community.mysql`` collection.
486 This changelog contains all changes to the modules in this collection
487 that have been added after the release of ``community.mysql`` 3.4.0.
488
489 Minor Changes
490 -------------
491
492 - mysql_replication - add a new option: ``primary_ssl_verify_server_cert`` (https://github.com//pull/435).
493
494 Bugfixes
495 --------
496
497 - mysql_user - grant option was revoked accidentally when modifying users. This fix revokes grant option only when privs are setup to do that (https://github.com/ansible-collections/community.mysql/issues/77#issuecomment-1209693807).
498
499 v3.4.0
500 ======
501
502 Release Summary
503 ---------------
504
505 This is the minor release of the ``community.mysql`` collection.
506 This changelog contains all changes to the modules in this collection
507 that have been added after the release of ``community.mysql`` 3.3.0.
508
509 Major Changes
510 -------------
511
512 - mysql_db - the ``pipefail`` argument's default value will be changed to ``true`` in community.mysql 4.0.0. 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).
513
514 Minor Changes
515 -------------
516
517 - mysql_db - add the ``chdir`` argument to avoid failings when a dump file contains relative paths (https://github.com/ansible-collections/community.mysql/issues/395).
518 - mysql_db - add the ``pipefail`` argument to avoid broken dumps when ``state`` is ``dump`` and compression is used (https://github.com/ansible-collections/community.mysql/issues/256).
519
520 Bugfixes
521 --------
522
523 - Include ``simplified_bsd.txt`` license file for various module utils.
524 - mysql_db - Using compression masks errors messages from mysql_dump. By default the fix is inactive to ensure retro-compatibility with system without bash. To activate the fix, use the module option ``pipefail=true`` (https://github.com/ansible-collections/community.mysql/issues/256).
525 - mysql_replication - when the ``primary_ssl`` argument is set to ``no``, the module will turn off SSL (https://github.com/ansible-collections/community.mysql/issues/393).
526
527 v3.3.0
528 ======
529
530 Release Summary
531 ---------------
532
533 This is the minor release of the ``community.mysql`` collection.
534 This changelog contains all changes to the modules in this collection
535 that have been added after the release of ``community.mysql`` 3.2.1.
536
537 Minor Changes
538 -------------
539
540 - mysql_role - add the argument ``members_must_exist`` (boolean, default true). The assertion that the users supplied in the ``members`` argument exist is only executed when the new argument ``members_must_exist`` is ``true``, to allow opt-out (https://github.com/ansible-collections/community.mysql/pull/369).
541 - mysql_user - Add the option ``on_new_username`` to argument ``update_password`` to reuse the password (plugin and authentication_string) when creating a new user if some user with the same name already exists. If the existing user with the same name have varying passwords, the password from the arguments is used like with ``update_password: always`` (https://github.com/ansible-collections/community.mysql/pull/365).
542 - mysql_user - Add the result field ``password_changed`` (boolean). It is true, when the user got a new password. When the user was created with ``update_password: on_new_username`` and an existing password was reused, ``password_changed`` is false (https://github.com/ansible-collections/community.mysql/pull/365).
543
544 Bugfixes
545 --------
546
547 - mysql_query - fix false change reports when ``IF EXISTS/IF NOT EXISTS`` clause is used (https://github.com/ansible-collections/community.mysql/issues/268).
548 - mysql_role - don't add members to a role when creating the role and ``detach_members: true`` is set (https://github.com/ansible-collections/community.mysql/pull/367).
549 - mysql_role - in some cases (when "SHOW GRANTS" did not use backticks for quotes), no unwanted members were detached from the role (and redundant "GRANT" statements were executed for wanted members). This is fixed by querying the existing role members from the mysql.role_edges (MySQL) or mysql.roles_mapping (MariaDB) tables instead of parsing the "SHOW GRANTS" output (https://github.com/ansible-collections/community.mysql/pull/368).
550 - mysql_user - fix logic when ``update_password`` is set to ``on_create`` for users using ``plugin*`` arguments (https://github.com/ansible-collections/community.mysql/issues/334). The ``on_create`` sets ``password`` to None for old mysql_native_authentication but not for authentiation methods which uses the ``plugin*`` arguments. This PR changes this so ``on_create`` also exchange ``plugin``, ``plugin_hash_string``, ``plugin_auth_string`` to None in the list of arguments to change
551
552 v3.2.1
553 ======
554
555 Release Summary
556 ---------------
557
558 This is the patch release of the ``community.mysql`` collection.
559 This changelog contains all changes to the modules in this collection
560 that have been added after the release of ``community.mysql`` 3.2.0.
561
562 Bugfixes
563 --------
564
565 - Include ``PSF-license.txt`` file for ``plugins/module_utils/_version.py``.
566
567 v3.2.0
568 ======
569
570 Release Summary
571 ---------------
572
573 This is the minor release of the ``community.mysql`` collection.
574 This changelog contains all changes to the modules in this collection
575 that have been added after the release of ``community.mysql`` 3.1.3.
576
577 Major Changes
578 -------------
579
580 - The community.mysql collection no longer supports ``Ansible 2.9`` and ``ansible-base 2.10``. While we take no active measures to prevent usage and there are no plans to introduce incompatible code to the modules, we will stop testing against ``Ansible 2.9`` and ``ansible-base 2.10``. Both will very soon be End of Life and if you are still using them, you should consider upgrading to the ``latest Ansible / ansible-core 2.11 or later`` as soon as possible (https://github.com/ansible-collections/community.mysql/pull/343).
581
582 Minor Changes
583 -------------
584
585 - mysql_user and mysql_role: Add the argument ``subtract_privs`` (boolean, default false, mutually exclusive with ``append_privs``). If set, the privileges given in ``priv`` are revoked and existing privileges are kept (https://github.com/ansible-collections/community.mysql/pull/333).
586
587 Bugfixes
588 --------
589
590 - mysql_user - fix missing dynamic privileges after revoke and grant privileges to user (https://github.com/ansible-collections/community.mysql/issues/120).
591 - mysql_user - fix parsing privs when a user has roles assigned (https://github.com/ansible-collections/community.mysql/issues/231).
592
593 v3.1.3
594 ======
595
596 Release Summary
597 ---------------
598
599 This is the patch release of the ``community.mysql`` collection.
600 This changelog contains all changes to the modules in this collection
601 that have been added after the release of ``community.mysql`` 3.1.2.
602
603 Bugfixes
604 --------
605
606 - mysql_replication - fails when using the `primary_use_gtid` option with `slave_pos` or `replica_pos` (https://github.com/ansible-collections/community.mysql/issues/335).
607 - mysql_role - remove redundant connection closing (https://github.com/ansible-collections/community.mysql/pull/330).
608 - mysql_user - fix the possibility for a race condition that breaks certain (circular) replication configurations when ``DROP USER`` is executed on multiple nodes in the replica set. Adding ``IF EXISTS`` avoids the need to use ``sql_log_bin: no`` making the statement always replication safe (https://github.com/ansible-collections/community.mysql/pull/287).
609
610 v3.1.2
611 ======
612
613 Release Summary
614 ---------------
615
616 This is the patch release of the ``community.mysql`` collection.
617 This changelog contains all changes to the modules in this collection
618 that have been added after the release of ``community.mysql`` 3.1.1.
619
620 Bugfixes
621 --------
622
623 - Collection core functions - fixes related to the mysqlclient Python connector (https://github.com/ansible-collections/community.mysql/issues/292).
624
625 v3.1.1
626 ======
627
628 Release Summary
629 ---------------
630
631 This is the patch release of the ``community.mysql`` collection.
632 This changelog contains all changes to the modules in this collection
633 that have been added after the release of ``community.mysql`` 3.1.0.
634
635 Bugfixes
636 --------
637
638 - mysql_role - make the ``set_default_role_all`` parameter actually working (https://github.com/ansible-collections/community.mysql/pull/282).
639
640 v3.1.0
641 ======
642
643 Release Summary
644 ---------------
645
646 This is the minor release of the ``community.mysql`` collection.
647 This changelog contains all changes to the modules in this collection
648 that have been added after the release of ``community.mysql`` 3.0.0.
649
650 Minor Changes
651 -------------
652
653 - Added explicit description of the supported versions of databases and connectors. Changes to the collection are **NOT** tested against database versions older than `mysql 5.7.31` and `mariadb 10.2.37` or connector versions older than `pymysql 0.7.10` and `mysqlclient 2.0.1`. (https://github.com/ansible-collections/community.mysql/discussions/141)
654 - mysql_user - added the ``force_context`` boolean option to set the default database context for the queries to be the ``mysql`` database. This way replication/binlog filters can catch the statements (https://github.com/ansible-collections/community.mysql/issues/265).
655
656 Bugfixes
657 --------
658
659 - Collection core functions - use vendored version of ``distutils.version`` instead of the deprecated Python standard library ``distutils`` (https://github.com/ansible-collections/community.mysql/pull/269).
660
661 v3.0.0
662 ======
663
664 Release Summary
665 ---------------
666
667 This is the major release of the ``community.mysql`` collection.
668 This changelog contains all breaking changes to the modules in this collection
669 that have been added after the release of ``community.mysql`` 2.3.2.
670
671 Breaking Changes / Porting Guide
672 --------------------------------
673
674 - mysql_replication - remove ``Is_Slave`` and ``Is_Master`` return values (were replaced with ``Is_Primary`` and ``Is_Replica`` (https://github.com/ansible-collections/community.mysql/issues/145).
675 - mysql_replication - remove the mode options values containing ``master``/``slave`` and the master_use_gtid option ``slave_pos`` (were replaced with corresponding ``primary``/``replica`` values) (https://github.com/ansible-collections/community.mysql/issues/145).
676 - mysql_user - remove support for the `REQUIRESSL` special privilege as it has ben superseded by the `tls_requires` option (https://github.com/ansible-collections/community.mysql/discussions/121).
677 - mysql_user - validate privileges using database engine directly (https://github.com/ansible-collections/community.mysql/issues/234 https://github.com/ansible-collections/community.mysql/pull/243). Do not validate privileges in this module anymore.