Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4a3cfa6

Browse files
authored
* Add changelog fragments from c.g. * Adjust version_added to 0.1.0, which comes closer to the truth. * Add changelogs/.plugin-cache.yaml to gitignore.
1 parent c26bc09 commit 4a3cfa6

10 files changed

+32
-27
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/tests/output/
2+
/changelogs/.plugin-cache.yaml
23

34
# Byte-compiled / optimized / DLL files
45
__pycache__/

changelogs/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ sections:
2525
- Bugfixes
2626
- - known_issues
2727
- Known Issues
28-
title: Community.Mysql
28+
title: Community MySQL Collection
2929
trivial_section_name: trivial
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bugfixes:
2+
- mysql_user - fix overriding password to the same (https://github.com/ansible-collections/community.general/issues/543).
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bugfixes:
2+
- mysql_user - add missed privileges to support (https://github.com/ansible-collections/community.general/issues/617).

plugins/modules/mysql_db.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@
7373
required: no
7474
default: no
7575
type: bool
76-
version_added: '0.2.0'
76+
version_added: '0.1.0'
7777
force:
7878
description:
7979
- Continue dump or import even if we get an SQL error.
8080
- Used only when I(state) is C(dump) or C(import).
8181
required: no
8282
type: bool
8383
default: no
84-
version_added: '0.2.0'
84+
version_added: '0.1.0'
8585
master_data:
8686
description:
8787
- Option to dump a master replication server to produce a dump file
@@ -95,21 +95,21 @@
9595
type: int
9696
choices: [0, 1, 2]
9797
default: 0
98-
version_added: '0.2.0'
98+
version_added: '0.1.0'
9999
skip_lock_tables:
100100
description:
101101
- Skip locking tables for read. Used when I(state=dump), ignored otherwise.
102102
required: no
103103
type: bool
104104
default: no
105-
version_added: '0.2.0'
105+
version_added: '0.1.0'
106106
dump_extra_args:
107107
description:
108108
- Provide additional arguments for mysqldump.
109109
Used when I(state=dump) only, ignored otherwise.
110110
required: no
111111
type: str
112-
version_added: '0.2.0'
112+
version_added: '0.1.0'
113113
use_shell:
114114
description:
115115
- Used to prevent C(Broken pipe) errors when the imported I(target) file is compressed.
@@ -118,15 +118,15 @@
118118
required: no
119119
type: bool
120120
default: no
121-
version_added: '0.2.0'
121+
version_added: '0.1.0'
122122
unsafe_login_password:
123123
description:
124124
- If C(no), the module will safely use a shell-escaped version of the I(login_password) value.
125125
- It makes sense to use C(yes) only if there are special symbols in the value and errors C(Access denied) occur.
126126
- Used only when I(state) is C(import) or C(dump) and I(login_password) is passed, ignored otherwise.
127127
type: bool
128128
default: no
129-
version_added: '0.2.0'
129+
version_added: '0.1.0'
130130
restrict_config_file:
131131
description:
132132
- Read only passed I(config_file).
@@ -136,14 +136,14 @@
136136
- If this behavior is undesirable, use C(yes) to read only named option file.
137137
type: bool
138138
default: no
139-
version_added: '0.2.0'
139+
version_added: '0.1.0'
140140
check_implicit_admin:
141141
description:
142142
- Check if mysql allows login as root/nopassword before trying supplied credentials.
143143
- If success, passed I(login_user)/I(login_password) will be ignored.
144144
type: bool
145145
default: no
146-
version_added: '0.2.0'
146+
version_added: '0.1.0'
147147
config_overrides_defaults:
148148
description:
149149
- If C(yes), connection parameters from I(config_file) will override the default
@@ -152,7 +152,7 @@
152152
- It needs Python 3.5+ as the default interpreter on a target host.
153153
type: bool
154154
default: no
155-
version_added: '0.2.0'
155+
version_added: '0.1.0'
156156
157157
seealso:
158158
- module: community.mysql.mysql_info
@@ -309,7 +309,7 @@
309309
returned: if executed
310310
type: list
311311
sample: ["CREATE DATABASE acme"]
312-
version_added: '0.2.0'
312+
version_added: '0.1.0'
313313
'''
314314

315315
import os

plugins/modules/mysql_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
- "Supports elements: C(db_size). Unsupported elements will be ignored"
3838
type: list
3939
elements: str
40-
version_added: '0.2.0'
40+
version_added: '0.1.0'
4141
return_empty_dbs:
4242
description:
4343
- Includes names of empty databases to returned dictionary.

plugins/modules/mysql_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- Runs arbitrary MySQL queries.
1616
- Pay attention, the module does not support check mode!
1717
All queries will be executed in autocommit mode.
18-
version_added: '0.2.0'
18+
version_added: '0.1.0'
1919
options:
2020
query:
2121
description:

plugins/modules/mysql_replication.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
C(getslave) (SHOW SLAVE STATUS),
2929
C(startslave) (START SLAVE),
3030
C(stopslave) (STOP SLAVE),
31-
C(resetmaster) (RESET MASTER) - supported since community.mysql 0.2.0,
31+
C(resetmaster) (RESET MASTER) - supported since community.mysql 0.1.0,
3232
C(resetslave) (RESET SLAVE),
3333
C(resetslaveall) (RESET SLAVE ALL).
3434
type: str
@@ -115,36 +115,36 @@
115115
- Available since MariaDB 10.0.2.
116116
choices: [current_pos, slave_pos, disabled]
117117
type: str
118-
version_added: '0.2.0'
118+
version_added: '0.1.0'
119119
master_delay:
120120
description:
121121
- Time lag behind the master's state (in seconds).
122122
- Available from MySQL 5.6.
123123
- For more information see U(https://dev.mysql.com/doc/refman/8.0/en/replication-delayed.html).
124124
type: int
125-
version_added: '0.2.0'
125+
version_added: '0.1.0'
126126
connection_name:
127127
description:
128128
- Name of the master connection.
129129
- Supported from MariaDB 10.0.1.
130130
- Mutually exclusive with I(channel).
131131
- For more information see U(https://mariadb.com/kb/en/library/multi-source-replication/).
132132
type: str
133-
version_added: '0.2.0'
133+
version_added: '0.1.0'
134134
channel:
135135
description:
136136
- Name of replication channel.
137137
- Multi-source replication is supported from MySQL 5.7.
138138
- Mutually exclusive with I(connection_name).
139139
- For more information see U(https://dev.mysql.com/doc/refman/8.0/en/replication-multi-source.html).
140140
type: str
141-
version_added: '0.2.0'
141+
version_added: '0.1.0'
142142
fail_on_error:
143143
description:
144144
- Fails on error when calling mysql.
145145
type: bool
146146
default: False
147-
version_added: '0.2.0'
147+
version_added: '0.1.0'
148148
149149
notes:
150150
- If an empty value for the parameter of string type is needed, use an empty string.
@@ -231,7 +231,7 @@
231231
returned: always
232232
type: list
233233
sample: ["CHANGE MASTER TO MASTER_HOST='master2.example.com',MASTER_PORT=3306"]
234-
version_added: '0.2.0'
234+
version_added: '0.1.0'
235235
'''
236236

237237
import os

plugins/modules/mysql_user.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,25 +89,25 @@
8989
description:
9090
- User's plugin to authenticate (``CREATE USER user IDENTIFIED WITH plugin``).
9191
type: str
92-
version_added: '0.2.0'
92+
version_added: '0.1.0'
9393
plugin_hash_string:
9494
description:
9595
- User's plugin hash string (``CREATE USER user IDENTIFIED WITH plugin AS plugin_hash_string``).
9696
type: str
97-
version_added: '0.2.0'
97+
version_added: '0.1.0'
9898
plugin_auth_string:
9999
description:
100100
- User's plugin auth_string (``CREATE USER user IDENTIFIED WITH plugin BY plugin_auth_string``).
101101
type: str
102-
version_added: '0.2.0'
102+
version_added: '0.1.0'
103103
resource_limits:
104104
description:
105105
- Limit the user for certain server resources. Provided since MySQL 5.6 / MariaDB 10.2.
106106
- "Available options are C(MAX_QUERIES_PER_HOUR: num), C(MAX_UPDATES_PER_HOUR: num),
107107
C(MAX_CONNECTIONS_PER_HOUR: num), C(MAX_USER_CONNECTIONS: num)."
108108
- Used when I(state=present), ignored otherwise.
109109
type: dict
110-
version_added: '0.2.0'
110+
version_added: '0.1.0'
111111
112112
notes:
113113
- "MySQL server installs with default login_user of 'root' and no password. To secure this user

plugins/modules/mysql_variables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
type: str
4343
choices: ['global', 'persist', 'persist_only']
4444
default: global
45-
version_added: '0.2.0'
45+
version_added: '0.1.0'
4646
4747
seealso:
4848
- module: community.mysql.mysql_info
@@ -73,7 +73,7 @@
7373
returned: if executed
7474
type: list
7575
sample: ["SET GLOBAL `read_only` = 1"]
76-
version_added: '0.2.0'
76+
version_added: '0.1.0'
7777
'''
7878

7979
import os

0 commit comments

Comments
 (0)