Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
543d97db
Commit
543d97db
authored
5 years ago
by
Jafar Lie
Browse files
Options
Downloads
Patches
Plain Diff
fixed roles for mysql
parent
d947d15d
No related branches found
No related tags found
1 merge request
!293
Ubuntu
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/mysql/tasks/Ubuntu_18_mysql_server.yml
+6
-0
6 additions, 0 deletions
roles/mysql/tasks/Ubuntu_18_mysql_server.yml
with
6 additions
and
0 deletions
roles/mysql/tasks/Ubuntu_18_mysql_server.yml
+
6
−
0
View file @
543d97db
...
@@ -30,12 +30,18 @@
...
@@ -30,12 +30,18 @@
-
name
:
"
Adding
user
database"
-
name
:
"
Adding
user
database"
mysql_db
:
name={{ mysql_user_db_name }} state=present login_user=root login_password={{ mysql_root_password }}
mysql_db
:
name={{ mysql_user_db_name }} state=present login_user=root login_password={{ mysql_root_password }}
become
:
true
become_user
:
root
-
name
:
"
Giving
priviliges
to
user"
-
name
:
"
Giving
priviliges
to
user"
mysql_user
:
name={{ mysql_user_name }} host={{ mysql_user_host }} password={{ mysql_user_password }} login_user=root login_password={{ mysql_root_password }} priv={{ mysql_user_db_name }}.*:ALL,GRANT state=present
mysql_user
:
name={{ mysql_user_name }} host={{ mysql_user_host }} password={{ mysql_user_password }} login_user=root login_password={{ mysql_root_password }} priv={{ mysql_user_db_name }}.*:ALL,GRANT state=present
when
:
mysql_user_host is defined
when
:
mysql_user_host is defined
become
:
true
become_user
:
root
-
name
:
"
Giving
priviliges
to
user"
-
name
:
"
Giving
priviliges
to
user"
mysql_user
:
name={{ mysql_user_name }} host={{ hostvars[item].ansible_fqdn }} password={{ mysql_user_password }} login_user=root login_password={{ mysql_root_password }} priv={{ mysql_user_db_name }}.*:ALL,GRANT state=present
mysql_user
:
name={{ mysql_user_name }} host={{ hostvars[item].ansible_fqdn }} password={{ mysql_user_password }} login_user=root login_password={{ mysql_root_password }} priv={{ mysql_user_db_name }}.*:ALL,GRANT state=present
with_items
:
"
{{
mysql_user_hosts_group
}}"
with_items
:
"
{{
mysql_user_hosts_group
}}"
when
:
mysql_user_hosts_group is defined
when
:
mysql_user_hosts_group is defined
become
:
true
become_user
:
root
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Jafar Lie
@jlie0003
mentioned in commit
aece209f
·
4 years ago
mentioned in commit
aece209f
mentioned in commit aece209f4ce79962d8ece67b107310bf5c05ba05
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment