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
debdcaf4
Commit
debdcaf4
authored
Oct 15, 2015
by
Kevin Falcone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert from older ansible arg passing syntax
parent
9aaf1441
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
20 deletions
+25
-20
playbooks/roles/ad_hoc_reporting/tasks/main.yml
+25
-20
No files found.
playbooks/roles/ad_hoc_reporting/tasks/main.yml
View file @
debdcaf4
...
@@ -21,28 +21,29 @@
...
@@ -21,28 +21,29 @@
# - user
# - user
-
name
:
install system packages
-
name
:
install system packages
apt
:
>
apt
:
pkg
={{ item }}
pkg
:
"
{{
item
}}"
state
=
present
state
:
present
with_items
:
ad_hoc_reporting_debian_pkgs
with_items
:
ad_hoc_reporting_debian_pkgs
tags
:
tags
:
-
install:system-requirements
-
install:system-requirements
-
name
:
install python packages
-
name
:
install python packages
pip
:
>
pip
:
name="{{ item }}" state=present
name
:
"
{{
item
}}"
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }}"
state
:
present
extra_args
:
"
-i
{{
COMMON_PYPI_MIRROR_URL
}}"
with_items
:
ad_hoc_reporting_pip_pkgs
with_items
:
ad_hoc_reporting_pip_pkgs
tags
:
tags
:
-
install:app-requirements
-
install:app-requirements
-
name
:
create directories
-
name
:
create directories
file
:
>
file
:
path
=
"{{ item }}"
path
:
"
{{
item
}}"
state
=
directory
state
:
directory
owner
=
root
owner
:
root
group
=
root
group
:
root
mode
=
0755
mode
:
0755
with_items
:
with_items
:
-
/edx/bin
-
/edx/bin
tags
:
tags
:
...
@@ -55,10 +56,12 @@
...
@@ -55,10 +56,12 @@
#Also, all of the *_REPLICA_DB_HOST vars are only defined
#Also, all of the *_REPLICA_DB_HOST vars are only defined
# in secure config files.
# in secure config files.
-
name
:
install common mysql replica scripts
-
name
:
install common mysql replica scripts
template
:
>
template
:
src=edx/bin/mysql.sh.j2
src
:
edx/bin/mysql.sh.j2
dest=/edx/bin/{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-{{ item.script_name }}
dest
:
/edx/bin/{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-{{ item.script_name }}
mode=0755 owner=root group=root
mode
:
0755
owner
:
root
group
:
root
when
:
COMMON_MYSQL_READ_ONLY_PASS is defined and item.depends_on
when
:
COMMON_MYSQL_READ_ONLY_PASS is defined and item.depends_on
tags
:
tags
:
-
scripts
-
scripts
...
@@ -100,10 +103,12 @@
...
@@ -100,10 +103,12 @@
# read_only mongo user, you must override the default
# read_only mongo user, you must override the default
# in order for these templates to be written out
# in order for these templates to be written out
-
name
:
install mongodb replica scripts
-
name
:
install mongodb replica scripts
template
:
>
template
:
src=edx/bin/mongo.sh.j2
src
:
edx/bin/mongo.sh.j2
dest=/edx/bin/{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-{{ item.script_name }}
dest
:
/edx/bin/{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-{{ item.script_name }}
mode=0755 owner=root group=root
mode
:
0755
owner
:
root
group
:
root
with_items
:
with_items
:
-
db_hosts
:
"
{{
EDXAPP_MONGO_HOSTS
}}"
-
db_hosts
:
"
{{
EDXAPP_MONGO_HOSTS
}}"
db_name
:
"
{{
EDXAPP_MONGO_DB_NAME
}}"
db_name
:
"
{{
EDXAPP_MONGO_DB_NAME
}}"
...
...
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