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