Format long lines

This commit is contained in:
R. Sicart 2022-09-01 18:06:21 +02:00
commit 81da566c7e

View file

@ -173,12 +173,14 @@
state: present state: present
register: result register: result
# FIXME: on mysql >=8 and mariadb >=10.5.2 there's always a change because the REPLICATION CLIENT privilege was renamed to BINLOG MONITOR # FIXME: on mysql >=8 and mariadb >=10.5.2 there's always a change because
# the REPLICATION CLIENT privilege was renamed to BINLOG MONITOR
- name: Assert that priv did not change - name: Assert that priv did not change
assert: assert:
that: that:
- result is not changed - result is not changed
when: (install_type == 'mysql' and mysql_version is version('8', '<')) or (install_type == 'mariadb' and mariadb_version is version('10.5', '<')) when: (install_type == 'mysql' and mysql_version is version('8', '<')) or
(install_type == 'mariadb' and mariadb_version is version('10.5', '<'))
- name: remove username - name: remove username
mysql_user: mysql_user:
@ -211,7 +213,7 @@
- name: Assert that 'GRANT' permission is present - name: Assert that 'GRANT' permission is present
assert: assert:
that: that:
- "mysql_info_about_users.users.localhost.{{ user_name_2 }}.Grant_priv == 'Y'" - mysql_info_about_users.users.localhost.{{ user_name_2 }}.Grant_priv == 'Y'
- name: Test idempotency (expect ok) - name: Test idempotency (expect ok)
mysql_user: mysql_user:
@ -227,7 +229,8 @@
assert: assert:
that: that:
- result is not changed - result is not changed
when: (install_type == 'mysql' and mysql_version is version('8', '<')) or (install_type == 'mariadb') when: (install_type == 'mysql' and mysql_version is version('8', '<')) or
(install_type == 'mariadb')
- name: Collect user info by host - name: Collect user info by host
community.mysql.mysql_info: community.mysql.mysql_info:
@ -238,7 +241,7 @@
- name: Assert that 'GRANT' permission is present - name: Assert that 'GRANT' permission is present
assert: assert:
that: that:
- "mysql_info_about_users.users.localhost.{{ user_name_2 }}.Grant_priv == 'Y'" - mysql_info_about_users.users.localhost.{{ user_name_2 }}.Grant_priv == 'Y'
# ============================================================ # ============================================================
- name: update user with invalid privileges - name: update user with invalid privileges