Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
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
edx
configuration
Commits
591abf7d
Commit
591abf7d
authored
May 21, 2015
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the iteration to not uses dicts.
parent
6805248a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
playbooks/edx-east/create_db_and_users.yml
+13
-13
No files found.
playbooks/edx-east/create_db_and_users.yml
View file @
591abf7d
...
@@ -57,25 +57,25 @@
...
@@ -57,25 +57,25 @@
-
name
:
create mysql databases
-
name
:
create mysql databases
mysql_db
:
>
mysql_db
:
>
db={{ item.
key
}}
db={{ item.
name
}}
state={{ item.
value.
state }}
state={{ item.state }}
encoding={{ item.
value.
encoding }}
encoding={{ item.encoding }}
login_host={{ item.
value.
login_host }}
login_host={{ item.login_host }}
login_user={{ item.
value.
login_user }}
login_user={{ item.login_user }}
login_password={{ item.
value.
login_password }}
login_password={{ item.login_password }}
with_items
:
databases
with_items
:
databases
tags
:
tags
:
-
dbs
-
dbs
-
name
:
create mysql users and assign privileges
-
name
:
create mysql users and assign privileges
mysql_user
:
>
mysql_user
:
>
name="{{ item.
key
}}"
name="{{ item.
name
}}"
priv="{{ '/'.join(item.
value.
privileges) }}"
priv="{{ '/'.join(item.privileges) }}"
password="{{ item.
value.
password }}"
password="{{ item.password }}"
host={{ item.
value.
host }}
host={{ item.host }}
login_host={{ item.
value.
login_host }}
login_host={{ item.login_host }}
login_user={{ item.
value.
login_user }}
login_user={{ item.login_user }}
login_password={{ item.
value.
login_password }}
login_password={{ item.login_password }}
append_privs=yes
append_privs=yes
with_items
:
database_users
with_items
:
database_users
tags
:
tags
:
...
...
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