mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-27 23:21:27 -07:00
fix tests (include
deprecation) (#554)
* tests: change deprecated "include" to "include_tasks" * tests: fix syntax --------- Co-authored-by: Felix Hamme <felix.hamme@ionos.com>
This commit is contained in:
parent
b6ad472c78
commit
2fcfb103f6
19 changed files with 352 additions and 101 deletions
|
@ -10,7 +10,10 @@
|
|||
# ========================================================================
|
||||
# Creation
|
||||
# ========================================================================
|
||||
- include: utils/create_user.yml user_name={{ user_name_1 }} user_password={{ user_password_1 }}
|
||||
- include_tasks: utils/create_user.yml
|
||||
vars:
|
||||
user_name: "{{ user_name_1 }}"
|
||||
user_password: "{{ user_password_1 }}"
|
||||
|
||||
- name: Idempotency | Create user that already exist (expect changed=false)
|
||||
mysql_user:
|
||||
|
@ -55,7 +58,10 @@
|
|||
# ========================================================================
|
||||
|
||||
# Create blank user to be removed later
|
||||
- include: utils/create_user.yml user_name="" user_password='KJFDY&D*Sfuysf'
|
||||
- include_tasks: utils/create_user.yml
|
||||
vars:
|
||||
user_name: ""
|
||||
user_password: 'KJFDY&D*Sfuysf'
|
||||
|
||||
- name: Idempotency | Remove blank user with hosts=all (expect changed)
|
||||
mysql_user:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue