mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-06 10:40:36 -07:00
Fix equal operators
This commit is contained in:
parent
4b4c06b4f7
commit
69d3f8b3c2
1 changed files with 3 additions and 3 deletions
|
@ -192,7 +192,7 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
separator: 'PASSWORD'
|
separator: 'PASSWORD'
|
||||||
# Semantically: when mysql version >= 5.7 or MariaDB version >= 10.2
|
# Semantically: when mysql version >= 5.7 or MariaDB version >= 10.2
|
||||||
when: db_version.version.major = 5 and db_version.version.minor >= 7 or db_version.version.major > 5 and db_version.version.major < 10 or db_version.version.major == 10 and db_version.version.minor >= 2
|
when: db_version.version.major == 5 and db_version.version.minor >= 7 or db_version.version.major > 5 and db_version.version.major < 10 or db_version.version.major == 10 and db_version.version.minor >= 2
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: assert user1 TLS requirements
|
- name: assert user1 TLS requirements
|
||||||
|
@ -243,7 +243,7 @@
|
||||||
- name: retrieve TLS requiremets for users in new database version
|
- name: retrieve TLS requiremets for users in new database version
|
||||||
command: "{{ mysql_command }} -L -N -s -e \"SHOW CREATE USER '{{ user_name_1 }}'@'localhost'\""
|
command: "{{ mysql_command }} -L -N -s -e \"SHOW CREATE USER '{{ user_name_1 }}'@'localhost'\""
|
||||||
register: new_result
|
register: new_result
|
||||||
when: db_version.version.major = 5 and db_version.version.minor >= 7 or db_version.version.major > 5 and db_version.version.major < 10 or db_version.version.major == 10 and db_version.version.minor >= 2
|
when: db_version.version.major == 5 and db_version.version.minor >= 7 or db_version.version.major > 5 and db_version.version.major < 10 or db_version.version.major == 10 and db_version.version.minor >= 2
|
||||||
|
|
||||||
- name: assert user1 TLS requirements was not changed
|
- name: assert user1 TLS requirements was not changed
|
||||||
assert:
|
assert:
|
||||||
|
@ -267,7 +267,7 @@
|
||||||
- name: retrieve TLS requiremets for users in new database version
|
- name: retrieve TLS requiremets for users in new database version
|
||||||
command: "{{ mysql_command }} -L -N -s -e \"SHOW CREATE USER '{{ user_name_1 }}'@'localhost'\""
|
command: "{{ mysql_command }} -L -N -s -e \"SHOW CREATE USER '{{ user_name_1 }}'@'localhost'\""
|
||||||
register: new_result
|
register: new_result
|
||||||
when: db_version.version.major = 5 and db_version.version.minor >= 7 or db_version.version.major > 5 and db_version.version.major < 10 or db_version.version.major == 10 and db_version.version.minor >= 2
|
when: db_version.version.major == 5 and db_version.version.minor >= 7 or db_version.version.major > 5 and db_version.version.major < 10 or db_version.version.major == 10 and db_version.version.minor >= 2
|
||||||
|
|
||||||
- name: assert user1 TLS requirements
|
- name: assert user1 TLS requirements
|
||||||
assert:
|
assert:
|
||||||
|
|
Loading…
Add table
Reference in a new issue