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
OpenEdx
configuration
Commits
c4ef75c1
Commit
c4ef75c1
authored
Sep 07, 2016
by
Kevin Falcone
Committed by
GitHub
Sep 07, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3355 from edx/jibsheet/copy-xblock-config-files
Copy XBlock configuraiton files to the remote server
parents
39aee51b
946aeb57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
+13
-1
playbooks/edx-east/populate_configuration_model.yml
+13
-1
No files found.
playbooks/edx-east/populate_configuration_model.yml
View file @
c4ef75c1
...
...
@@ -37,10 +37,22 @@
python_path
:
/edx/bin/python.edxapp
manage_path
:
/edx/bin/manage.edxapp
tasks
:
-
name
:
Create a temp directory
shell
:
mktemp -d /tmp/ansible_xblock_config.XXXXX
register
:
xblock_config_temp_directory
-
name
:
Copy config file to remote server
copy
:
src
:
"
{{
file
}}"
dest
:
"
{{
xblock_config_temp_directory.stdout
}}/{{
file
|
basename
}}"
register
:
xblock_config_file
-
name
:
Manage xblock configurations
shell
:
>
{{ python_path }} {{ manage_path }} lms --settings=aws
populate_model -f {{
file
| quote }} -u {{ user }}
populate_model -f {{
xblock_config_file.dest
| quote }} -u {{ user }}
register
:
command_result
changed_when
:
"
'Import
complete,
0
new
entries
created'
not
in
command_result.stdout"
-
debug
:
msg="{{ command_result.stdout }}"
-
name
:
Clean up tempdir
file
:
path
:
"
{{
xblock_config_temp_directory.stdout
}}"
state
:
absent
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