Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
86b21a1b
Commit
86b21a1b
authored
Dec 01, 2014
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integration tests for
https://github.com/ansible/ansible-modules-core/issues/416
parent
e61e8a37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletions
+29
-1
lib/ansible/modules/core
+1
-1
test/integration/roles/test_mysql_user/tasks/main.yml
+28
-0
No files found.
core
@
3a80b734
Subproject commit
2a794fa77693a58ed0c2585d3f70f686c38dbe93
Subproject commit
3a80b734e6e4c1ebe8cbd40b4957a7589520caf5
test/integration/roles/test_mysql_user/tasks/main.yml
View file @
86b21a1b
...
...
@@ -118,6 +118,34 @@
-
include
:
remove_user.yml user_name={{user_name_2}} user_password={{ user_password_1 }}
-
name
:
give user access to database via wildcard
mysql_user
:
name={{ user_name_1 }} priv=%db.*:SELECT append_privs=yes password={{ user_password_1 }}
-
name
:
show grants access for user1 on multiple database
command
:
mysql "-e SHOW GRANTS FOR '{{ user_name_1 }}'@'localhost';"
register
:
result
-
name
:
assert grant access for user1 on multiple database
assert
:
that
:
-
"
'%db'
in
result.stdout"
-
"
'SELECT'
in
result.stdout"
-
name
:
change user access to database via wildcard
mysql_user
:
name={{ user_name_1 }} priv=%db.*:INSERT append_privs=yes password={{ user_password_1 }}
-
name
:
show grants access for user1 on multiple database
command
:
mysql "-e SHOW GRANTS FOR '{{ user_name_1 }}'@'localhost';"
register
:
result
-
name
:
assert grant access for user1 on multiple database
assert
:
that
:
-
"
'%db'
in
result.stdout"
-
"
'INSERT'
in
result.stdout"
-
include
:
remove_user.yml user_name={{user_name_1}} user_password={{ user_password_1 }}
# ============================================================
# Update user password for a user.
# Assert the user password is updated and old password can no longer be used.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment