|
35 | 35 | C(resetprimary) (RESET MASTER) - supported since community.mysql 0.1.0, |
36 | 36 | C(resetreplica) (RESET REPLICA), |
37 | 37 | C(resetreplicaall) (RESET REPLICA ALL), |
38 | | - C(startgroupreplication) (START GROUP_REPLICATION), |
39 | | - C(stopgroupreplication) (STOP GROUP_REPLICATION). |
| 38 | + C(startgroupreplication) (START GROUP_REPLICATION) - supported since community.mysql 3.10.0, |
| 39 | + C(stopgroupreplication) (STOP GROUP_REPLICATION) - supported since community.mysql 3.10.0. |
40 | 40 | type: str |
41 | 41 | choices: |
42 | 42 | - changeprimary |
|
200 | 200 | description: |
201 | 201 | - User for group replication. |
202 | 202 | type: str |
203 | | - version_added: '3.9.0' |
| 203 | + version_added: '3.10.0' |
204 | 204 | group_replication_password: |
205 | 205 | description: |
206 | 206 | - Password for group replication user. |
207 | 207 | type: str |
208 | | - version_added: '3.9.0' |
| 208 | + version_added: '3.10.0' |
209 | 209 | notes: |
210 | 210 | - Compatible with MariaDB or MySQL. |
211 | 211 | - If an empty value for the parameter of string type is needed, use an empty string. |
@@ -812,14 +812,14 @@ def main(): |
812 | 812 | if group_replication_password is not None: |
813 | 813 | chm.append(" PASSWORD='%s'" % group_replication_password) |
814 | 814 | started = startgroupreplication(module, cursor, chm, fail_on_error) |
815 | | - if started is True: |
| 815 | + if started: |
816 | 816 | module.exit_json(msg="Group replication started ", changed=True, queries=executed_queries) |
817 | 817 | else: |
818 | 818 | module.exit_json(msg="Group replication already started (Or cannot be started)", changed=False, |
819 | 819 | ueries=executed_queries) |
820 | 820 | elif mode == "stopgroupreplication": |
821 | 821 | stopped = stopgroupreplication(module, cursor, channel, fail_on_error) |
822 | | - if stopped is True: |
| 822 | + if stopped: |
823 | 823 | module.exit_json(msg="Group replication stopped", changed=True, queries=executed_queries) |
824 | 824 | else: |
825 | 825 | module.exit_json(msg="Group replication already stopped", changed=False, queries=executed_queries) |
|
0 commit comments