Fix equal operators

This commit is contained in:
Jorge Rodriguez (A.K.A. Tiriel) 2020-07-25 19:16:48 +03:00 committed by GitHub
parent 4b4c06b4f7
commit 69d3f8b3c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: