mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-09 15:44:22 -07:00
tests: change deprecated "include" to "include_tasks"
This commit is contained in:
parent
89d1637c32
commit
78a0edfd26
15 changed files with 312 additions and 88 deletions
|
@ -37,7 +37,11 @@
|
|||
state: present
|
||||
when: current_append_privs == "yes"
|
||||
|
||||
- include: utils/assert_user.yml user_name={{ user_name_2 }} user_host=% priv='SELECT'
|
||||
- include_tasks: utils/assert_user.yml
|
||||
vars:
|
||||
user_name: "{{ user_name_2 }}"
|
||||
user_host: "%"
|
||||
priv: 'SELECT'
|
||||
when: current_append_privs == "yes"
|
||||
|
||||
- name: Privs | Create user with current privileges (expect changed=true)
|
||||
|
@ -132,7 +136,7 @@
|
|||
priv: '*.*:ALL'
|
||||
state: present
|
||||
|
||||
# - include: utils/assert_user.yml user_name={{user_name_2}} user_host=% priv='ALL PRIVILEGES'
|
||||
# - include_tasks: utils/assert_user.yml user_name={{user_name_2}} user_host=% priv='ALL PRIVILEGES'
|
||||
|
||||
- name: Privs | Create database using user {{ user_name_2 }}
|
||||
mysql_db:
|
||||
|
@ -192,7 +196,9 @@
|
|||
- (db_engine == 'mysql' and db_version is version('5.7', '<=')
|
||||
or db_engine == 'mariadb' and db_version is version('10.4', '<='))
|
||||
|
||||
- include: utils/remove_user.yml user_name="{{ user_name_2 }}"
|
||||
- include_tasks: utils/remove_user.yml
|
||||
vars:
|
||||
user_name: "{{ user_name_2 }}"
|
||||
|
||||
# ============================================================
|
||||
- name: Privs | Grant all privileges with grant option
|
||||
|
@ -263,4 +269,6 @@
|
|||
that:
|
||||
- result is failed
|
||||
|
||||
- include: utils/remove_user.yml user_name="{{ user_name_2 }}"
|
||||
- include_tasks: utils/remove_user.yml
|
||||
vars:
|
||||
user_name: "{{ user_name_2 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue